WaitReSS::Logging - Centralized logging utilities
version 0.002
To facilitate debugging, this module provides some functions to log traces.
more_verbose(); less_verbose();
Adjust the logging verbosity.
enable_pid( $bool );
Enable or disable the prefixing of pid in logs.
enable_timestamp( $bool );
Enable or disable the timestamping of logs.
enable_trace( $bool );
Enable or disable the tracing of logs.
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.
@stuff
\n
Jerome Quelin <jquelin@gmail.com>
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.
To install WaitReSS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WaitReSS
CPAN shell
perl -MCPAN -e shell install WaitReSS
For more information on module installation, please visit the detailed CPAN module installation guide.