init installs the trigger needed before each HTTP request. It also establishes the baseline for all times and creates the log path.
Log as much of the request state as we can.
Append the current user to the request log. This isn't done in one fell swoop because if the server explodes during a request, we would lose the request's data for logging.
This, strictly speaking, isn't necessary. But we don't always want to lug the sessions table around, so this gets us most of the way there.
logged_request is checked to ensure that we don't append the current user if the current request couldn't be logged for whatever reason (perhaps a serialization error?).
logged_request
Creates the loghandle. The created file is named PATH/BOOTTIME-PID.log.
PATH/BOOTTIME-PID.log
Returns undef on error.
undef
Jifty::Plugin::Recorder - record HTTP requests for playback
This plugin will log all HTTP requests as YAML. The logfiles can be used by jifty playback (provided with this plugin) to replay the logged requests. This can be handy for perfomance tuning, debugging, and testing.
jifty playback
Add the following to your site_config.yml
framework: Plugins: - Recorder: {}
The path for creating request logs. Default: log/requests. This directory will be created for you, if necessary.
Report how much memory (in bytes) Jifty is taking up. This uses Proc::ProcessTable. Default is off.
Jifty::Plugin::Recorder::Command::Playback, HTTP::Server::Simple::Recorder
Copyright 2007 Best Practical Solutions
This is free software and may be modified and distributed under the same terms as Perl itself.
To install Jifty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Jifty
CPAN shell
perl -MCPAN -e shell install Jifty
For more information on module installation, please visit the detailed CPAN module installation guide.