Log::Any::Adapter::Fille - Advanced adapter for logging to files
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', );
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.
Log::Any::Adapter::Fille
The log_level attribute may be set to define a minimum level to log.
log_level
Category is ignored.
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>.
Fille
<date> <time> <PID> <log_level> <message>
File
<localtime> <message>
At the same time:
Fille represents date and time in ISO 8601 format, including microseconds
File represents date in built-in Perl format without microseconds
Fille registers PID and log_level
File does not register them
Fille correctly processes messages containing wide character
File 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
Log::Any, Log::Any::Adapter
Mikhail Ivanov <m.ivanych@gmail.com>
Anastasia Zherebtsova <zherebtsova@gmail.com> - translation of documentation into English
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.
To install Log::Any::Adapter::Fille, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::Any::Adapter::Fille
CPAN shell
perl -MCPAN -e shell install Log::Any::Adapter::Fille
For more information on module installation, please visit the detailed CPAN module installation guide.