ANNOUNCE: Log:Dispatch 1.6 
Author Message
 ANNOUNCE: Log:Dispatch 1.6

The URL

    ftp://ftp.urth.org/pub/Log-Dispatch-1.6.tar.gz

has entered CPAN as

  file: $CPAN/authors/id/D/DR/DROLSKY/Log-Dispatch-1.6.tar.gz
  size: 14371 bytes
   md5: d9542de69a26ee81be3c0eaa59fc8815

Quote:
>From the README:

Log::Dispatch is a suite of OO modules for logging messages to
multiple outputs, each of which can have a minimum and maximum log
level.  It is designed to be easily subclassed, both for creating a
new dispatcher object and particularly for creating new outputs.  It
also allows both global (dispatcher level) and local (logging object)
message formatting callbacks which allows greater flexibility and
should reduce the need for subclassing.  Subclassing is now only
needed to send a message to a different output, not to change the
message format.

Quote:
>From Changes:

1.6

NOTE: 1.5 was never released to CPAN.

- Log/Dispatch.pm: Added convenience methods for log levels like
$dispatcher->alert($message).  Suggested by Dominique Dumont.

1.5

This version introduces some changes into the interface that will
cause incompatibility with any Log::Dispatch::Output interface you may
have created.  However, it is fairly simple to fix.  Simply change the
method in your subclass named 'log' to be called 'log_message'.  You
can also remove the line:

  return unless $self->_should_log($params{level});

This is now done before the message ever gets to the Output subclass
(which is what it should have done in the first place, really.)

This was done so that I could allow per-Output object callbacks, a
feature which several people have requested and which seems useful
enough to warrant the breakage.

NOTE: This change is transparent if you are only using the Output
objects included with this distribution.

- Many: Changed the interface to allow per-Output object level
callbacks and documented this.
- Log/Dispatch/Base.pm: new base class for both Log::Dispatch and
Log::Dispatch::Output objects (contains callback related code).  You
should never need to deal with this class unles you are me.
- Log/Dispatch/Output.pm: document _accepted_levels.
- Log/Dispatch/Output.pm: Fix _accepted_levels so that emergency level
is returned as 'emergency', not 'emerg'.
- Log/Dispatch.pm: Fix doc bug (change 'file' to 'filename').  Thanks
to Clayton Scott.
- Log/Dispatch/File.pm: Do compile time check for O_APPEND constant
rather than run time check.



Sat, 21 Dec 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. ANNOUNCE: Log::Dispatch 1.008

2. ANNOUNCE: Log::Dispatch::Config

3. How to subclass Log::Log4perl::Appender and Log::Dispatch::DBI

4. ANNOUNCE: Mail::Audit 1.6 is available

5. ANNOUNCE: Text::Ptml 1.6 - Procedural Template Merge Language

6. ANNOUNCE: MD5 Message Digest Module -- Version 1.6

7. Log::Dispatch::File error

8. Log::Dispatch::File error

9. RFC: Log::Dispatch suite

10. ANNOUNCE: centralized debug and user feedback logging CGI::Log

11. ANNOUNCE: Parse::RecDescent 1.60

12. how to use SNMP 1.6 module using perl

 

 
Powered by phpBB® Forum Software