Name
CatalystX::Usul::Log - Create logging methods for different encodings
Version
$Revision: 1139 $
Synopsis
use parent qw(CatalystX::Usul::Log);
__PACKAGE__->mk_log_methods();
# Can now call the following
$self->log_debug( $text );
$self->log_info( $text );
$self->log_warn( $text );
$self->log_error( $text );
$self->log_fatal( $text );
Description
Defines a class methods which will create logging methods that encode thier output using the required encoding
Subroutines/Methods
mk_log_methods
Creates a set of methods defined by the $LEVELS
package variable. The method expects $self->log
and $self->encoding
to be set. It encodes the output string prior calling the log method at the given level
mk_log_message
$self->mk_log_message( $args, $message );
Returns a message formatted for logging
Diagnostics
None
Configuration and Environment
None
Dependencies
Incompatibilities
There are no known incompatibilities in this module
Bugs and Limitations
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Author
Peter Flanigan, <Support at RoxSoft.co.uk>
License and Copyright
Copyright (c) 2011 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE