Find a file
Denis alpha6 Fedoseev 38f297ffc8 Checking in changes prior to tagging of version 0.5.3.
Changelog diff is:

diff --git a/Changes b/Changes
index 0a8873a..08555d6 100644
--- a/Changes
+++ b/Changes
@@ -1,6 +1,8 @@
 Revision history for Perl extension Log-Mini
 
 {{$NEXT}}
+
+0.5.3 2025-02-01T12:04:20Z
     - Small tests improvements
 
 0.5.2 2025-02-01T11:18:09Z
2025-02-01 15:04:25 +03:00
lib/Log Checking in changes prior to tagging of version 0.5.3. 2025-02-01 15:04:25 +03:00
t small tests improvements 2025-02-01 15:03:49 +03:00
.gitignore Checking in changes prior to tagging of version 0.5.0. 2024-09-14 21:28:05 +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.5.3. 2025-02-01 15:04:25 +03:00
cpanfile Fixed the error of displaying the log date 2025-02-01 14:15:51 +03:00
LICENSE Checking in changes prior to tagging of version 0.4.0. 2024-04-04 00:47:18 +03:00
META.json Checking in changes prior to tagging of version 0.5.3. 2025-02-01 15:04:25 +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.5.1. 2024-09-17 18:43:55 +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->new(); #STDERR logger used by default. Error is default log level
$logger->error('Error message');

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

my $debug_logger = Log::Mini->new('stdout', level => 'debug'); #STDOUT logger, error messages too
$debug_logger->info('Info message');

my $file_logger = Log::Mini->new(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->new(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');

#Null logger - drops all messages to /dev/null
my $logger = Log::Mini->new('null);
$logger->error('Error message'); #Message will be dropped

#Logging with context
$logger->push_context('order_id=1234');
$logger->error('something happened');

# 2024-08-14 21:53:52.267 [error] order_id=1234: something happenned

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