Starch::Plugin::Trace - Add extra trace logging to your manager, states, and stores.
my $starch = Starch->new( plugins => ['::Trace'], ...., );
This plugin logs a lot of debug information to Log::Any under the trace level.
trace
See the Log::Any documentation for instructions on how to output these log messages using an adapter.
This plugin is meant for non-production use, as logging will reduce performance.
These messages are logged from the Starch::Manager object.
Every time a Starch::Manager object is created a message is logged in the format of starch.manager.new.
starch.manager.new
Every call to "state" in Starch::Manager is logged in the format of starch.manager.state.$action.$state_id, where $action is either retrieved or created depending on if the state ID was provided.
starch.manager.state.$action.$state_id
$action
retrieved
created
Every call to "generate_state_id" in Starch::Manager is logged in the format of starch.manager.generate_state_id.$state_id.
starch.manager.generate_state_id.$state_id
These messages are logged from the Starch::State object.
Every time a Starch::State object is created a message is logged in the format of starch.state.new.$state_id.
starch.state.new.$state_id
Every call to "save" in Starch::State is logged in the format of starch.state.save.$state_id.
starch.state.save.$state_id
Every call to "delete" in Starch::State is logged in the format of starch.state.delete.$state_id.
starch.state.delete.$state_id
Every call to "reload" in Starch::State is logged in the format of starch.state.reload.$state_id.
starch.state.reload.$state_id
Every call to "rollback" in Starch::State is logged in the format of starch.state.rollback.$state_id.
starch.state.rollback.$state_id
Every call to "clear" in Starch::State is logged in the format of starch.state.clear.$state_id.
starch.state.clear.$state_id
Every call to "mark_clean" in Starch::State is logged in the format of starch.state.mark_clean.$state_id.
starch.state.mark_clean.$state_id
Every call to "mark_dirty" in Starch::State is logged in the format of starch.state.mark_dirty.$state_id.
starch.state.mark_dirty.$state_id
Every call to "set_expires" in Starch::State is logged in the format of starch.state.set_expires.$state_id.
starch.state.set_expires.$state_id
Every call to "reset_expires" in Starch::State is logged in the format of starch.state.reset_expires.$state_id.
starch.state.reset_expires.$state_id
Every call to "reset_id" in Starch::State is logged in the format of starch.state.reset_id.$state_id.
starch.state.reset_id.$state_id
These messages are logged from the Starch::Store object.
The $store_name bits in the below log messages will be the name of the store class minus the Starch::Store:: bit.
$store_name
Starch::Store::
Every time a Starch::Store object is created a message is logged in the format of starch.store.$store_name.new.
starch.store.$store_name.new
Every call to "set" in Starch::Store is logged in the format of starch.store.$store_name.set.$state_key.
starch.store.$store_name.set.$state_key
Every call to "get" in Starch::Store is logged in the format of starch.store.$store_name.get.$state_key.
starch.store.$store_name.get.$state_key
If the result of calling get is undefined then an additional log will produced of the format starch.store.$store_name.get.$state_key.missing.
get
starch.store.$store_name.get.$state_key.missing
Every call to "remove" in Starch::Store is logged in the format of starch.store.$store_name.remove.$state_key.
starch.store.$store_name.remove.$state_key
See "AUTHOR" in Starch, "CONTRIBUTORS" in Starch, and "LICENSE" in Starch.
To install Starch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Starch
CPAN shell
perl -MCPAN -e shell install Starch
For more information on module installation, please visit the detailed CPAN module installation guide.