Skip to content

Commit

Permalink
v0.4.0 — More better directives
Browse files Browse the repository at this point in the history
- Support the `%{c}h` log directive
- `%f` and `%R` can now be `None`
- **Bugfix**: `%u` can now match the string `""` (two double quotes)
- Support `mod_ssl`'s `%{*}c` and `%{*}x` directives
- Support the `%{hextid}P` directive (as a hexadecimal integer)
- Support the `%L` and `%{c}L` directives
- Parameters to `%{*}p`, `%{*}P`, and `%{*}T` are now treated case-insensitively in order to mirror Apache's behavior
- Refined some directives to better match only the values emitted by Apache:
    - `%l` and `%m` no longer accept whitespace
    - `%s` and `%{tid}P` now only match unsigned integers
    - `%{*}C` no longer accepts semicolons or leading or trailing spaces
    - `%q` no longer accepts whitespace or pound/hash signs
  • Loading branch information
jwodder committed May 19, 2019
1 parent 0ab2218 commit 7016696
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
v0.4.0 (in development)
-----------------------
v0.4.0 (2019-05-19)
-------------------
- Support the `%{c}h` log directive
- `%f` and `%R` can now be `None`
- **Bugfix**: `%u` can now match the string `""` (two double quotes)
Expand Down
10 changes: 3 additions & 7 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
- Research the following:
- Look into whether the values for the following string format directives
have more restrictive patterns they always follow:
- `%h` - no whitespace?
- `%v` - no whitespace?
- `%V` - no whitespace?
- `%{*}^ti`
- `%{*}^to`
- Is it valid to expect `%h`, `%v`, and `%V` to always be hostnames (or an
IP address, for `%h`)? Failing that, can they at least be expected to
not contain whitespace?
- Check whether `%a` can be a comma-separated list of IP addresses (in case
of proxying/X-Forwarded-For and the like)

Expand Down
2 changes: 1 addition & 1 deletion apachelogs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
for more information.
"""

__version__ = '0.4.0.dev1'
__version__ = '0.4.0'
__author__ = 'John Thorvald Wodder II'
__author_email__ = 'apachelogs@varonathe.org'
__license__ = 'MIT'
Expand Down
4 changes: 2 additions & 2 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
Changelog
=========

v0.4.0 (in development)
-----------------------
v0.4.0 (2019-05-19)
-------------------
- Support the ``%{c}h`` log directive
- ``%f`` and ``%R`` can now be `None`
- **Bugfix**: ``%u`` can now match the string ``""`` (two double quotes)
Expand Down

0 comments on commit 7016696

Please sign in to comment.