NAME
Log::Any::Adapter::Fille - Advanced adapter for logging to files
SYNOPSIS
use Log::Any::Adapter ('Fille', file => '/path/to/file.log');
# or
use Log::Any::Adapter;
...
Log::Any::Adapter->set('Fille', file => '/path/to/file.log');
# with minimum level 'warn'
use Log::Any::Adapter (
'Fille', file => '/path/to/file.log', log_level => 'warn',
);
DESCRIPTION
Adapter Log::Any::Adapter::Fille
is intended for logging messages to the file. Behavior of this adapter resembles simple built-in adapter behavior Log::Any::Adapter:File, but differs from it in several details.
The log_level
attribute may be set to define a minimum level to log.
Category is ignored.
Difference from built-in adapter File
Adapter Fille
registers logs in advanced format <date> <time> <PID> <log_level> <message>
, unlike built-in adapter File
, which registers logs in simple format <localtime> <message>
.
At the same time:
Fille
represents date and time in ISO 8601 format, including microsecondsFile
represents date in built-in Perl format without microsecondsFille
registers PID and log_levelFile
does not register themFille
correctly processes messages containing wide characterFile
displays warning 'Wide character in print at ...'
Example of a log Fille
:
2015-06-02 17:50:50.894774 16315 WARNING Some message
Example of a log File
:
[Tue Jun 2 17:50:50 2015] Some message
SEE ALSO
AUTHORS
Mikhail Ivanov <m.ivanych@gmail.com>
Anastasia Zherebtsova <zherebtsova@gmail.com> - translation of documentation into English
COPYRIGHT AND LICENSE
This software is copyright (c) 2015 by Mikhail Ivanov.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.