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

SOURCE

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

AUTHOR

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