-
-
30 Jun 2009 00:11:37 UTC
- Distribution: Tie-Log4perl
- Module version: 0.1
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (1)
- Testers (58 / 0 / 0)
- Kwalitee
Bus factor: 0- 74.60% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (1.8KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors- Paul Driver E<lt>frodwith@cpan.orgE<gt>
- Dependencies
- Log::Log4perl
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Tie::Log4perl
DESCRIPTION
Tie a filehandle so that whatever is printed to it is instead logged via Log4perl, as recommended by Log::Log4Perl::FAQ, except that using the filehandle you tie as an appender will not cause infinite recursion.
SYNOPSIS
tie *STDERR, 'Tie::Log4perl'; # This will be logged, instead warn "Parbleu, an error!\n";
OPTIONS
The following options may be passed to tie after the class name either as a list or as a hash reference.
level
The level to log at. Defaults to $Log::Log4perl::Level::Debug.
logger
The logger category object log with. Optional.
prefix
An optional string to prefix to messages.
AUTHOR
Paul Driver <frodwith@cpan.org>
COPYRIGHT AND LICENCE
Copyright (C) 2009 Paul Driver
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Tie::Log4perl, copy and paste the appropriate command in to your terminal.
cpanm Tie::Log4perl
perl -MCPAN -e shell install Tie::Log4perl
For more information on module installation, please visit the detailed CPAN module installation guide.