FreeBSD.software
Home/devel/p5-Mojo-Log-Clearable

p5-Mojo-Log-Clearable

1.001devel

Log rotation role for Mojo::Log

Mojo::Log is a simple logger class. It holds a filehandle once it writes to a log, and changing "path" in Mojo::Log does not open a new filehandle for logging. Mojo::Log::Role::Clearable is a role that provides a "clear_handle" method and automatically calls it when "path" in Mojo::Log is modified, so the logging handle is reopened at the new path. The "clear_handle" method can also be used to reopen the logging handle after log rotation.

$pkg install p5-Mojo-Log-Clearable
metacpan.org/pod/Mojo::Log::Clearable
Origin
devel/p5-Mojo-Log-Clearable
Size
15.3KiB
License
ART20
Maintainer
olgeni@FreeBSD.org
Dependencies
2 packages
Required by
1 packages

Dependencies (2)

Required By (1)