readme
This commit is contained in:
parent
1391ee3503
commit
6918a1536b
2 changed files with 13 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue