Bio::Gonzales::Util::Log - basic logging for Bio::Gonzales
# logs to stderr by default my $l = Bio::Gonzales::Util::Log->new(); $l->info("started application");
First of all: Shamelessly stolen from Mojo::Log, thanks to Sebastian Riedel & contributors for creating it.
Sets or gets the log file path. If not set, STDERR is used.
Sets or gets the threshold level for logging. Everything lower than this level will not be logged. By default debug.
debug
Sets or gets the namespace of the logger.
Log to file and STDERR. If no path is set, setting this option has no effect.
If 1, the logger appends the log output to the log file.
Log debug message.
Log error message.
Log warning message.
Log fatal message.
Log info message.
Format @lines and return the formatted text.
@lines
Return true if log level is debug.
Return true if log level is error.
Return true if log level is fatal.
Return true if log level is info.
Return true if log level is warn.
Return true if log level is $level
$level
Logs $lines with $level to log destination.
$lines
Mojo::Log
jw bargsten, <jwb at cpan dot org>
<jwb at cpan dot org>
To install Bio::Gonzales, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bio::Gonzales
CPAN shell
perl -MCPAN -e shell install Bio::Gonzales
For more information on module installation, please visit the detailed CPAN module installation guide.