Releases: mneudert/plug_accesslog
Releases · mneudert/plug_accesslog
v0.15.0
-
Enhancements
- Protocol for
%r
is now logged as reported byPlug.Conn.get_http_protocol/1
- System environment configuration can set an optional default value to be used if the environment variable is unset
- Protocol for
-
Backwards incompatible changes
- Minimum required elixir version is now
~> 1.7
- Minimum required elixir version is now
v0.14.0
-
Additional formatting directives
%{VARNAME}e
- Environment variable contents
-
Backwards incompatible changes
- All modules of the
DefaultFormatter
have been changed to not append to a passed message anymore but returniodata
. The public method has been renamed fromappend
toformat
to reflect this change.
- All modules of the
v0.13.0
v0.12.0
v0.11.0
-
Enhancements
- Logfiles can be configured using system environment variables
- Logs are written in batches to the output file (configurable, default
100ms
)
-
Backwards incompatible changes
:local_time
is now internally stored as aTimex.DateTime
struct- Minimum required version of :timex raised to
~> 2.0
(#12)
v0.10.0
v0.9.1
v0.9.0
v0.8.0
v0.7.0
-
Enhancements
- Allows passing custom formatters
- Errors when open logfiles are logged as errors using Logger
- Log writing is now handled by a GenEvent handler to avoid crashing
-
Additional formatting directives
%a
- Remote IP-address%D
- Time taken to serve the request (microseconds)%M
- Time taken to serve the request (milliseconds)%q
- Query string (prepended with "?" or empty string)%T
- Time taken to serve the request (full seconds)%V
- Server name (canonical)
-
Backwards incompatible changes
Plug.AccessLog.Formatter
has been renamed toPlug.AccessLog.DefaultFormatter