Log::ger::Output::SimpleFile - Send logs to file
version 0.004
use Log::ger::Output 'SimpleFile' => ( path => '/path/to/file.log', # or handle => $fh ); use Log::ger; log_warn "blah ...";
This is a plugin to send outputs to a file. File will be opened with append mode. Filehandle will be flushed after each log. No locking, rotation, or other fancy features (see Log::ger::Output::File and Log::ger::Output::FileWriteRotate for these features).
Specify filename to open. File will be opened in append mode.
Alternatively, you can provide an already opened filehandle.
Log::ger
Log::ger::Output::File is a similar output plugin with a few more options: locking, autoflush, lazy (filehandle is opened when a log is actually produced).
Log::ger::Output::FileWriteRotate offers autorotation feature.
perlancar <perlancar@cpan.org>
This software is copyright (c) 2020, 2019, 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.
To install Log::ger::Output::SimpleFile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::ger::Output::SimpleFile
CPAN shell
perl -MCPAN -e shell install Log::ger::Output::SimpleFile
For more information on module installation, please visit the detailed CPAN module installation guide.