NAME

WWW::MLite::Log - WWW::MLite Logging as CTK plugin

VERSION

Version 1.01

SYNOPSIS

my $server = new WWW::MLite (
    project     => "MyApp",
    ident       => "myapp",
    log         => "on",
    logfd       => fileno(STDERR),
    #logfile     => '/path/to/log/file.log',
);
$server->log_info("Yuppie! %s", __FILE__);

DESCRIPTION

WWW::MLite Logging as CTK plugin

ident

Specifies ident string for each log-record

See "ident" in CTK::Log

logfd
logfd => fileno(STDERR),

Sets IO file descriptor

See IO::Handle

logfile

Specifies log file

See "file" in CTK::Log

METHODS

logger
die $server->logger->error unless $server->logger->status;

Returns logger-object

logger_init
$server->logger_init( ... );

Init logger. See "new" in CTK::Log

log_debug
$server->log_debug( "format %s", "value", ... );

Sends debug message in sprintf fromat to log. See CTK::Log

log_info
$server->log_info( "format %s", "value", ... );

Sends informational message in sprintf fromat to log. See CTK::Log

log_notice
$server->log_notice( "format %s", "value", ... );

Sends notice message in sprintf fromat to log. See CTK::Log

log_warning, log_warn
$server->log_warning( "format %s", "value", ... );

Sends warning message in sprintf fromat to log. See CTK::Log

log_error
$server->log_error( "format %s", "value", ... );

Sends error message in sprintf fromat to log. See CTK::Log

log_crit
$server->log_crit( "format %s", "value", ... );

Sends critical message in sprintf fromat to log. See CTK::Log

log_alert
$server->log_alert( "format %s", "value", ... );

Sends alert message in sprintf fromat to log. See CTK::Log

log_emerg
$server->log_emerg( "format %s", "value", ... );

Sends emergency message in sprintf fromat to log. See CTK::Log

log_fatal
$server->log_fatal( "format %s", "value", ... );

Sends fatal message in sprintf fromat to log. See CTK::Log

log_except, log_exception
$server->log_except( "format %s", "value", ... );

Sends exception message in sprintf fromat to log. See CTK::Log

init

Initializer method. Internal use only

HISTORY

See Changes file

SEE ALSO

CTK, CTK::Plugin, CTK::Log, CTK::Plugin::Log

AUTHOR

Serż Minus (Sergey Lepenkov) http://www.serzik.com <abalama@cpan.org>

COPYRIGHT

Copyright (C) 1998-2019 D&D Corporation. All Rights Reserved

LICENSE

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/