CTK::Plugin::Log - Logger plugin
Version 1.00
use CTK; use CTK::Log qw/:constants/; my $ctk = new CTK( plugins => "log", ident => "myapp", logfile => "test.log", logger_init => 1, ); print $ctk->log_debug("Logger say: %s", "foo");
Logger plugin
Specifies ident string for each log-record
See "ident" in CTK::Log
Specifies log file
See "file" in CTK::Log
Really not used
Flag enabling the logger autoloading
If flag is enabled, then the data from the configuration will be used for logger initialization
die $ctk->logger->error unless $ctk->logger->status;
Returns logger-object
$ctk->logger_init( ... );
Init logger. See "new" in CTK::Log
$ctk->log_debug( "format %s", "value", ... );
Sends debug message in sprintf fromat to log. See CTK::Log
$ctk->log_info( "format %s", "value", ... );
Sends informational message in sprintf fromat to log. See CTK::Log
$ctk->log_notice( "format %s", "value", ... );
Sends notice message in sprintf fromat to log. See CTK::Log
$ctk->log_warning( "format %s", "value", ... );
Sends warning message in sprintf fromat to log. See CTK::Log
$ctk->log_error( "format %s", "value", ... );
Sends error message in sprintf fromat to log. See CTK::Log
$ctk->log_crit( "format %s", "value", ... );
Sends critical message in sprintf fromat to log. See CTK::Log
$ctk->log_alert( "format %s", "value", ... );
Sends alert message in sprintf fromat to log. See CTK::Log
$ctk->log_emerg( "format %s", "value", ... );
Sends emergency message in sprintf fromat to log. See CTK::Log
$ctk->log_fatal( "format %s", "value", ... );
Sends fatal message in sprintf fromat to log. See CTK::Log
$ctk->log_except( "format %s", "value", ... );
Sends exception message in sprintf fromat to log. See CTK::Log
Initializer method. Internal use only
See Changes file
Changes
CTK, CTK::Plugin, CTK::Log
See TODO file
TODO
* none noted
Serż Minus (Sergey Lepenkov) http://www.serzik.com <abalama@cpan.org>
Copyright (C) 1998-2019 D&D Corporation. All Rights Reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See LICENSE file and https://dev.perl.org/licenses/
LICENSE
To install CTK, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CTK
CPAN shell
perl -MCPAN -e shell install CTK
For more information on module installation, please visit the detailed CPAN module installation guide.