1Log::Dispatch::File::LoUcskeerd(C3o)ntributed Perl DocumLeongt:a:tDiiosnpatch::File::Locked(3)
2
3
4
6 Log::Dispatch::File::Locked - Extension to Log::Dispatch::File to
7 facilitate locking
8
10 use Log::Dispatch::File::Locked;
11
12 my $file = Log::Dispatch::File::Locked->new( name => 'locked_file1',
13 min_level => 'info',
14 filename => 'Somefile.log',
15 );
16
17 $file->log( level => 'emerg', message => "I've fallen and I can't get up\n" );
18
20 This module acts exactly like Log::Dispatch::File except that it
21 obtains an exclusive lock on the file before writing to it.
22
24 All methods are inherited from Log::Dispatch::File.
25
27 Dave Rolsky, <autarch@urth.org>
28
29
30
31perl v5.8.8 2006-12-20 Log::Dispatch::File::Locked(3)