-
-
16 Jun 2021 04:03:55 UTC
- Distribution: Mojo-Log-Clearable
- Module version: 1.001
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (142 / 0 / 2)
- Kwalitee
Bus factor: 1- 100.00% Coverage
- License: artistic_2
- Perl: v5.10.1
- Activity
24 month- Tools
- Download (12.96KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
NAME
Mojo::Log::Clearable - Mojo::Log with clearable log handle
SYNOPSIS
use Mojo::Log::Clearable; my $log = Mojo::Log::Clearable->new(path => $path1); $log->info($message); # Logged to $path1 $log->path($path2); $log->debug($message); # Logged to $path2 $log->path(undef); $log->warn($message); # Logged to STDERR # Reopen filehandle after logrotate (if logrotate sends SIGUSR1) $SIG{USR1} = sub { $log->clear_handle };
DESCRIPTION
Mojo::Log::Clearable is a subclass of Mojo::Log that applies the Mojo::Log::Role::Clearable role. See that role's documentation for details.
AUTHOR
Dan Book,
dbook@cpan.org
COPYRIGHT AND LICENSE
Copyright 2015, Dan Book.
This library is free software; you may redistribute it and/or modify it undef the terms of the Artistic License version 2.0.
SEE ALSO
Module Install Instructions
To install Mojo::Log::Clearable, copy and paste the appropriate command in to your terminal.
cpanm Mojo::Log::Clearable
perl -MCPAN -e shell install Mojo::Log::Clearable
For more information on module installation, please visit the detailed CPAN module installation guide.