Peter Flanigan > CatalystX-Usul-0.7.1184 > CatalystX::Usul::Log

Download:
catalystx-usul/CatalystX-Usul-0.7.1184.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: v0.7.1181   Source  

Name ^

CatalystX::Usul::Log - Create logging methods for different encodings

Version ^

$Revision: 1181 $

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 ^

Encode

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

syntax highlighting: