- Additional formatting directives
%P
- The process ID that serviced the request%{UNIT}T
- Time taken to serve the request in the given UNIT
- Backwards incompatible changes
- Minimum required version of :plug raised to "~> 1.0"
- Backwards incompatible changes
- Minimum required version of :plug raised to "~> 0.14"
-
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
-
Enhancements
- Allows passing a dontlog-function to skip requests from logging
- Dependencies not used in production builds are marked as optional
-
Additional formatting directives
%{VARNAME}C
- Cookie sent by the client%m
- Request method%{VARNAME}o
- Header line sent by the server
- Bug fixes
- Properly accesses headers using lowercase (@c-rack)
-
Enhancements
- Allows logging to functions instead of files
- Properly ignores unopenable logfiles (i.e. "..")
- Recreates logfile if necessary (i.e. after moved by logrotate)
-
Additional formatting directives
%%
- Percentage sign%B
- Size of response in bytes. Outputs "0" when no bytes are sent.
- Bug fixes
- Properly handles charlist responses (@chvanikoff)
- Reopens logfile IO device if pid is not alive anymore (@chvanikoff)
- Enhancements
- Provides "Agent Log Format" alias
- Provides "Combined Log Format" alias
- Provides "Combined Log Format with VHost" alias
- Provides "Referer Log Format" alias
- Enhancements
- Logs username from basic authentication
- Provides access to vhost (domain) for logging
- Raises plug version requirement to "~> 0.10"
- Enhancements
- Supports full CLF
- Initial Release