DebugLogger::Stdout - logging debug information to the stdout/stderr
use DebugLogger::Stdout;
my $logger = DebugLogger::Stdout->new;
...
$logger
->handle(STDERR) # heuristical default
->use_html(0) # heuristical default
->show_ident(1) # heuristical default
->show_time(1)
->show_times(1)
->times_format("%5.2f, %5.2f, %5.2f, %5.2f")
->monitor(":main")
->start
;
...
$logger->stop;
...
This module is used to actually log the provided debug information to standard or standard error outputs. See documentation of the inherited module the DebugLogger manpage.
If the output handle is terminal (tty), then some basic coloring of the output is done. You may add pipes to your script to disable this mode, like ``| cat'', or ``|& cat'' if the handle is STDERR.
the Debug manpage, the DebugLogger manpage, the DebugLogger::File manpage, the DebugLogger::PackageGroups manpage.
The options and their defaults are the same as in the DebugLogger manpage.
Example: $logger->show_time(1)->use_html(0);
Sets the handle to write to it. The default handle is \*STDOUT for win/dos systems and cgi-s, and \*STDERR for unix.