The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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 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

SEE ALSO

Log::Any, Log::Any::Adapter

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.