Log::Mini - It's a very simple logger which can log your messages to a file or STDERR.
Find a file
Denis Fedoseev f5c0a42887 Checking in changes prior to tagging of version 0.1.0.
Changelog diff is:

diff --git a/Changes b/Changes
index faf34cd..b732829 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,10 @@ Revision history for Perl extension Log-Mini

 {{$NEXT}}

+0.1.0 2019-03-19T12:08:23Z
+    - Supports formatted with sprintf messages
+    - log method was added
+
 0.0.3 2019-03-05T15:48:33Z
     - Unused say feature was removed
2019-03-19 15:08:29 +03:00
lib/Log readme 2019-03-19 15:03:14 +03:00
t allow formatted by sprintf output. 2019-03-19 14:57:41 +03:00
.gitignore .gitignore 2019-02-21 23:29:59 +03:00
.travis.yml small fixes 2019-02-21 23:23:53 +03:00
Build.PL Initial commit 2019-02-21 22:30:49 +03:00
Changes Checking in changes prior to tagging of version 0.1.0. 2019-03-19 15:08:29 +03:00
cpanfile Initial commit 2019-02-21 22:30:49 +03:00
LICENSE Initial commit 2019-02-21 22:30:49 +03:00
META.json Checking in changes prior to tagging of version 0.1.0. 2019-03-19 15:08:29 +03:00
minil.toml Initial commit 2019-02-21 22:30:49 +03:00
README.md Checking in changes prior to tagging of version 0.1.0. 2019-03-19 15:08:29 +03:00

NAME

Log::Mini - It's a very simple logger which can log your messages to a file or STDERR.

SYNOPSIS

use Log::Mini;

my $logger = Log::Mini->get_logger(); #STDERR logger used by default. Error is default log level
$logger->error('Error message');

my $debug_logger = Log::Mini->get_logger('stderr', level => 'debug'); #STDERR logger used by default
$debug_logger->error('Error message');

my $file_logger = Log::Mini->get_logger(file => 'log_file.log');
$file_logger->info('message to log file');

#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. You can have a number of loggers for various log files.

LICENSE

Copyright (C) Denis Fedoseev

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Denis Fedoseev denis.fedoseev@gmail.com