1Log::Dispatch::File::LoUcskeerd(C3o)ntributed Perl DocumLeongt:a:tDiiosnpatch::File::Locked(3)
2
3
4
6 Log::Dispatch::File::Locked - Subclass of Log::Dispatch::File to
7 facilitate locking
8
10 version 2.27
11
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
30 This module acts exactly like Log::Dispatch::File except that it
31 obtains an exclusive lock on the file before writing to it.
32
34 Dave Rolsky <autarch@urth.org>
35
37 This software is Copyright (c) 2010 by Dave Rolsky.
38
39 This is free software, licensed under:
40
41 The Artistic License 2.0
42
43
44
45perl v5.12.2 2010-10-16 Log::Dispatch::File::Locked(3)