1Log::Dispatch::File::LoUcskeerd(C3o)ntributed Perl DocumLeongt:a:tDiiosnpatch::File::Locked(3)
2
3
4

NAME

6       Log::Dispatch::File::Locked - Subclass of Log::Dispatch::File to
7       facilitate locking
8

VERSION

10       version 2.70
11

SYNOPSIS

13         use Log::Dispatch;
14
15         my $log = Log::Dispatch->new(
16             outputs => [
17                 [
18                     'File::Locked',
19                     min_level => 'info',
20                     filename  => 'Somefile.log',
21                     mode      => '>>',
22                     newline   => 1
23                 ]
24             ],
25         );
26
27         $log->emerg("I've fallen and I can't get up");
28

DESCRIPTION

30       This module acts exactly like Log::Dispatch::File except that it
31       obtains an exclusive lock on the file while opening it.
32
33       Note that if you are using this output because you want to write to a
34       file from multiple processes, you should open the file with the append
35       "mode" (">>"), or else it's quite likely that one process will
36       overwrite another.
37

SEE ALSO

39       "flock" in perlfunc
40

SUPPORT

42       Bugs may be submitted at
43       <https://github.com/houseabsolute/Log-Dispatch/issues>.
44
45       I am also usually active on IRC as 'autarch' on "irc://irc.perl.org".
46

SOURCE

48       The source code repository for Log-Dispatch can be found at
49       <https://github.com/houseabsolute/Log-Dispatch>.
50

AUTHOR

52       Dave Rolsky <autarch@urth.org>
53
55       This software is Copyright (c) 2020 by Dave Rolsky.
56
57       This is free software, licensed under:
58
59         The Artistic License 2.0 (GPL Compatible)
60
61       The full text of the license can be found in the LICENSE file included
62       with this distribution.
63
64
65
66perl v5.32.0                      2020-07-31    Log::Dispatch::File::Locked(3)
Impressum