Log::Handler::Output::Screen - Log messages to the screen.
use Log::Handler::Output::Screen; my $screen = Log::Handler::Output::Screen->new( log_to => "STDERR", dump => 1, ); $screen->log($message);
This output module makes it possible to log messages to your screen.
Call new() to create a new Log::Handler::Output::Screen object.
new()
The following options are possible:
Where do you want to log? Possible is: STDOUT, STDERR and WARN.
WARN means to call warn().
warn()
The default is STDOUT.
Set this option to 1 if you want that the message will be dumped with Data::Dumper to the screen.
Data::Dumper
Call log() if you want to log a message to the screen.
log()
Example:
$screen->log("this message goes to the screen");
Validate a configuration.
Reload with a new configuration.
This function returns the last error message.
Data::Dumper Params::Validate
No exports.
Please report all bugs to <jschulz.cpan(at)bloonix.de>.
If you send me a mail then add Log::Handler into the subject.
Jonny Schulz <jschulz.cpan(at)bloonix.de>.
Copyright (C) 2007-2009 by Jonny Schulz. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Log::Handler, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::Handler
CPAN shell
perl -MCPAN -e shell install Log::Handler
For more information on module installation, please visit the detailed CPAN module installation guide.