NAME
WaitReSS::Logging - Centralized logging utilities
VERSION
version 0.002
DESCRIPTION
To facilitate debugging, this module provides some functions to log traces.
METHODS
more_verbose
less_verbose
more_verbose();
less_verbose();
Adjust the logging verbosity.
enable_pid
enable_pid( $bool );
Enable or disable the prefixing of pid in logs.
enable_timestamp
enable_timestamp( $bool );
Enable or disable the timestamping of logs.
enable_trace
enable_trace( $bool );
Enable or disable the tracing of logs.
debug
info
error
info( @stuff );
debug( @stuff );
error( @stuff );
Output @stuff
colored depending on the gravity, with a potentially a timestamp and the caller sub. An automatic \n
is appended.
AUTHOR
Jerome Quelin <jquelin@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.