Jifty::Plugin::AccessLog - Concisely log Jifty requests
Add the following to your site_config.yml
framework: Plugins: - AccessLog: {}
The file to log to; defaults to log/access_log.
If set to a true value, will display the X-Forwarded-For header as the originating IP of requests.
X-Forwarded-For
The format string to use when logging. This module attempts to be as Apache-compatible as possible; it supports the following format escapes:
The percent sign.
Remote IP address.
The contents of the cookie Foobar in the request sent to the server.
The time taken to serve the request, in micoseconds.
The content of the Foobar header line(s) in the request.
The first 8 characters of the session ID, if any.
The request method.
The value of the template or request argument Foobar, as sent by the client, or set in the dispatcher.
The value of the Foobar header line(s) in the response.
The canonical port of the server serving the request. Alternate forms include %{canonical}p, %{local}p, and %{remote}p, which are the respective connection ports.
%{canonical}p
%{local}p
%{remote}p
The process ID that serviced the request.
The status code of the response.
The time the request was recieved, formatted in Apache's default format string ([%d/%b/%Y:%T %z]). %{format}t can be used to provide a strftime-style custom format.
[%d/%b/%Y:%T %z]
%{format}t
strftime
The time taken to serve the request, in seconds.
The value of "username" in Jifty::CurrentUser, if any.
The path requested. In the event that the request was for one or more regions, the list of regions will be given in square brackets.
The canonical server name of the server.
The list of active actions run in the request. Failed actions will be followed with an exclamation mark, un-run actions with a tilde.
As %X, but also includes all argument values to each action.
%X
Installs the trigger for each request.
On each request, log when it starts.
Open, and append to, the logfile with the format specified.
Jifty::Plugin::Recorder for more verbose debugging information.
Copyright 2009 Best Practical Solutions
This is free software and may be modified and distributed under the same terms as Perl itself.
To install Jifty::Plugin::AccessLog, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Jifty::Plugin::AccessLog
CPAN shell
perl -MCPAN -e shell install Jifty::Plugin::AccessLog
For more information on module installation, please visit the detailed CPAN module installation guide.