NAME

DebugLogger::Stdout - logging debug information to the stdout/stderr


SYNOPSIS

 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;
 ...


DESCRIPTION

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.


SEE ALSO

the Debug manpage, the DebugLogger manpage, the DebugLogger::File manpage, the DebugLogger::PackageGroups manpage.


OPTION MODIFIERS

[option]($value)

The options and their defaults are the same as in the DebugLogger manpage.

Example: $logger->show_time(1)->use_html(0);


MODIFIERS (in addition to SUPER)

set_handle

Sets the handle to write to it. The default handle is \*STDOUT for win/dos systems and cgi-s, and \*STDERR for unix.