NAME
Log::ger::Output::File - Send logs to file
VERSION
version 0.001
SYNOPSIS
use Log::ger::Output 'File' => (
path => '/path/to/file.log', # or handle => $fh
);
use Log::ger;
log_warn "blah ...";
DESCRIPTION
This is a simple output to file. File will be opened with append more. No locking, rotation, or other fancy features (yet). Filehandle will be flushed after each log.
CONFIGURATION
path => filename
Specify filename to open. File will be opened in append mode.
handle => glob|obj
Alternatively, you can provide an already opened filehandle.
SEE ALSO
AUTHOR
perlancar <perlancar@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.