Log::Handler::Output::Screen - Log messages to the screen.


Log-Handler documentation  | view source Contained in the Log-Handler distribution.

Index


NAME

Top

Log::Handler::Output::Screen - Log messages to the screen.

SYNOPSIS

Top

    use Log::Handler::Output::Screen;

    my $screen = Log::Handler::Output::Screen->new(
        log_to => "STDERR",
        dump   => 1,
    );

    $screen->log($message);

DESCRIPTION

Top

This output module makes it possible to log messages to your screen.

METHODS

Top

new()

Call new() to create a new Log::Handler::Output::Screen object.

The following options are possible:

log_to

Where do you want to log? Possible is: STDOUT, STDERR and WARN.

WARN means to call warn().

The default is STDOUT.

dump

Set this option to 1 if you want that the message will be dumped with Data::Dumper to the screen.

log()

Call log() if you want to log a message to the screen.

Example:

    $screen->log("this message goes to the screen");

validate()

Validate a configuration.

reload()

Reload with a new configuration.

errstr()

This function returns the last error message.

PREREQUISITES

Top

    Data::Dumper
    Params::Validate

EXPORTS

Top

No exports.

REPORT BUGS

Top

Please report all bugs to <jschulz.cpan(at)bloonix.de>.

If you send me a mail then add Log::Handler into the subject.

AUTHOR

Top

Jonny Schulz <jschulz.cpan(at)bloonix.de>.

COPYRIGHT

Top


Log-Handler documentation  | view source Contained in the Log-Handler distribution.