1Log::Any::Adapter::FileU(s3e)r Contributed Perl DocumentaLtoigo:n:Any::Adapter::File(3)
2
3
4

NAME

6       Log::Any::Adapter::File - Simple adapter for logging to files
7

VERSION

9       version 1.710
10

SYNOPSIS

12           use Log::Any::Adapter ('File', '/path/to/file.log');
13
14           # or
15
16           use Log::Any::Adapter;
17           ...
18           Log::Any::Adapter->set('File', '/path/to/file.log');
19
20           # with minimum level 'warn'
21
22           use Log::Any::Adapter (
23               'File', '/path/to/file.log', log_level => 'warn',
24           );
25

DESCRIPTION

27       This simple built-in Log::Any adapter logs each message to the
28       specified file, with a datestamp prefix and newline appended. The file
29       is opened for append with autoflush on.  If "flock" is available, the
30       handle will be locked when writing.
31
32       The "log_level" attribute may be set to define a minimum level to log.
33
34       The "binmode" attribute may be set to define a PerlIO layer string to
35       use when opening the file.  The default is ":utf8".
36
37       Category is ignored.
38

SEE ALSO

40       Log::Any, Log::Any::Adapter
41

AUTHORS

43       •   Jonathan Swartz <swartz@pobox.com>
44
45       •   David Golden <dagolden@cpan.org>
46
47       •   Doug Bell <preaction@cpan.org>
48
49       •   Daniel Pittman <daniel@rimspace.net>
50
51       •   Stephen Thirlwall <sdt@cpan.org>
52
54       This software is copyright (c) 2017 by Jonathan Swartz, David Golden,
55       and Doug Bell.
56
57       This is free software; you can redistribute it and/or modify it under
58       the same terms as the Perl 5 programming language system itself.
59
60
61
62perl v5.34.0                      2022-01-21        Log::Any::Adapter::File(3)
Impressum