This commit is contained in:
Denis Fedoseev 2019-03-19 15:03:14 +03:00
parent 1391ee3503
commit 6918a1536b
2 changed files with 13 additions and 0 deletions

View file

@ -18,6 +18,13 @@ Log::Mini - It's a very simple logger which can log your messages to a file or S
#prevent buffered output. May slow down your application!
my $synced_file_logger = Log::Mini->get_logger(file => 'log_file.log', synced => 1);
#format message with sprintf
$logger->info('Message with %s %s', 'some', 'additional info');
#log method for better compatibility
$logger->log('info', 'information message');
# DESCRIPTION
Log::Mini is a very simple logger which can log your messages to a file or STDERR.

View file

@ -50,6 +50,12 @@ Log::Mini - It's a very simple logger which can log your messages to a file or S
#prevent buffered output. May slow down your application!
my $synced_file_logger = Log::Mini->get_logger(file => 'log_file.log', synced => 1);
#format message with sprintf
$logger->info('Message with %s %s', 'some', 'additional info');
#log method for better compatibility
$logger->log('info', 'information message');
=head1 DESCRIPTION