Changes   [plain text]

2.21 Feb 6, 2008

- Added log_and_die() and log_and_croak() methods. Patch by Yuval

2.20 Nov 2, 2007

- One of the tests failed on Perl 5.6.x. Thanks to Slaven Rezic for
  the report.

2.19 Nov 1, 2007

- Switched to providing a traditional Makefile.PL as well as a
  Build.PL file. RT #27208.

- When permissions are specified for a Log::Dispatch::File object,
  don't try to chmod the file unless the permissions of the file
  differ from what the file already has. Based on a patch by Kevin. RT

- Require at least Perl 5.6.0.

- Remove the tests for the email sending and exit codes, since the
  test had a heisenbug I could not understand. I _think_ the code in
  the email modules is correct, but the test isn't proving anything.

- Added a binmode parameter for Log::Dispatch::File. Based on a patch
  by Angelo. RT #26063.

2.18 May 12, 2007

- Log::Dispatch::ApacheLog should really now work under mod_perl 2, as
  well as mod_perl 1. RT #26910.

2.17 Mar 31, 2007

- Log::Dispatch::ApacheLog should now work under mod_perl 2, as well
  as mod_perl 1.

2.16 Dec 19, 2006 (Happy Birthday, Dad!)

- Don't require IO::String for running the tests. Reported by Andreas
  Koenig. RT #23973.

- Moved Test::More to build_requires. Suggested by Andreas Koenig. RT

2.15 Dec 16, 2006

- Don't try to test compilation of L::D::Syslog unless Sys::Syslog is
  available. Patch by Kenichi Ishigaki. RT #23751.

- Allow a subroutine reference as a log message when callin
  Log::Dispatch->log(). Suggested by Craig Manley. RT #23913.

- Added Log::Dispatch::Null output, primarily for testing.

2.14 Nov 18, 2006

This release only involves changes to the test suite.

- Make sure we don't fail if Apache::Log is not installed on the
  system. RT #22791. Reported by Lee Goddard.

- Separated out compilation tests from other tests.

2.13 Sep 25, 2006

- No code changes, just added a SUPPORT section to the docs referring
  folks to RT for bug reports & patches.

2.12 Aug 9, 2006

- The various email sending modules could overwrite if they were in
  buffered mode and they sent mail as a script exited. Reported by
  Dean Kopesky.

- Doc tweaks. Make reference to "Log Levels" section in output module
  docs more explicit. RT #11224.

2.11 Jul 27, 2005

- In tests, make sure filehandles are closed before reading or
  unlinking the file.  Patch from Ron Savage.

2.10 Feb 11, 2004

- No changes to the core code, just a change to the included
  Makefile.PL so it works with Module::Build 0.23, which breaks
  backwards compatibility (grr).

- Fix a doc bug in Log::Dispatch::Syslog.  It defaults to using a unix
  socket, not an inet socket.

2.09 Jan 09, 2004

- Fix a test failure on Win32 platforms.  The problem was in the test,
  not the code.  Patch by David Viner.

- Distro is now signed with Module::Signature.

2.08 Nov 27, 2003

- Added Log::Dispatch->would_log method, which indicates whether
  logging will be done for a given log level.  Suggested by Ruslan

- Switched tests to use Test::More.

2.07 Sep 27, 2003

- Added Log::Dispatch::File::Locked.  Based on code from JAA Klunder.

- Check all system call return values.

- Fix warning from Log::Dispatch::File if it was loaded after
Attribute::Handlers.  Reported by Mike Schilli.

- Fixed up POD to pass pod tests.

2.06 May 1, 2003

  "Arise ye workers from your slumbers
   Arise ye criminals of want
   For reason in revolt now thunders
   and at last ends the age of cant."

- Added a permissions parameter to Log::Dispatch::File->new.  Based on
  a patch from James FitzGibbon.

2.05 Apr 18, 2003

- Changed a code construct that seems to provoke a bug for Meng Wong,
  but no one else ;)

- Switched to Module::Build and removed interactive portion of
  installation process.

- Log::Dispatch::Email::MailSender was causing Mail::Sender to send
  debug output to STDERR if warnings were on.  Now it's not.

2.04 Mar 21, 2003  (the "not in my name" release)

- The close_after_write option didn't actually do anything.  Fixed by
  JAA Klunder.

2.03 Feb 27, 2003

- Log::Dispatch::ApacheLog would break if a log level was specified as
  a number.  Reported by Kevin Goess.

2.02 Feb 20, 2003

- Added close_after_write option to Log::Dispatch::File.  Based on
  patch from JAA Klunder.

2.01 Jun 21, 2002

- Added new module Log::Dispatch::Email::MailSender, provided by
  Joseph Annino.

- Log::Dispatch::Output now contains "use Log::Dispatch".

- Now requires Params::Validate, which is used to validate parameter
  for constructors and some other methods.

- Add an 'autoflush' option to Log::Dispatch::File objects.  Suggested
  by Jerrad Pierce.

- Added some error checking to ::Email::MailSend.

- Changed a carp to a warn in ::Email::MailSendmail.

- Only warn if $^W is true.

2.00 Apr 11, 2002


- Use a standard hash reference for objects instead of pseudo-hashes.

- Log::Dispatch::Screen claimed it defaulted to using STDERR but it
  was lying, it defaulted to using STDOUT.  This has been changed so
  that it really does default to STDERR.  Reported by James

1.80 Oct 27, 2001

- Log::Dispatch::Syslog no longer requires for Perl >=
  5.006.  Patch by Benoit Beausejour.

- If you passed a mode parameter to Log::Dispatch::File it always
  thought the mode was append, no matter what was passed.  Patch from
  Luke Bakken.

- Log::Dispatch::File no longer uses IO::File internally.

1.79 May 15, 2001

- Don't use $, internally.  Apparently this is usually undefined.
  Instead, the convenience methods now simply take an array of
  messages and turn it into a scalar by doing "@_".  Thanks to Dean
  Kopesky for the bug report.

1.78 Apr 19, 2001

- Allow ApacheLog to take either an Apache or Apache::Server object.

- Fix callback documentation in Log::Dispatch::Output.  Thanks to Rob

- Add flush method to Log::Dispatch::Email.  Patch submitted by Rob

1.77 Jan 2, 2001

- The convenience methods named after the log levels ($log->debug,
  $log->alert, etc.) can now take a list of scalars.  These are joined
  together just like Perl's print function does.  Suggested by Tim

1.76 Oct 10, 2000

- New method: Log::Dispatch->level_is_valid($string).  Suggested by
  Jeff Hamman.

- Fix for version issues between CPAN versions of
  Log::Dispatch::ApacheLog.  Reported by Jost Krieger.

1.75 Sep 28, 2000

- Additional argument 'level' passed to message processing callbacks.
  Suggested by Jeff MacDonald.

- Log/ added docs section on Log::Dispatch::Tk.

1.7 Aug 30, 2000

- Added Log/Dispatch/  This logs to the Apache error log.
  This is for use under mod_perl.

1.6 Jul 4, 2000

NOTE: 1.5 was never released to CPAN.

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


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/ 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 unless you are me.

- Log/Dispatch/ document _accepted_levels.

- Log/Dispatch/ Fix _accepted_levels so that emergency level
  is returned as 'emergency', not 'emerg'.

- Log/ Fix doc bug (change 'file' to 'filename').  Thanks
  to Clayton Scott.

- Log/Dispatch/ Do compile time check for O_APPEND constant
  rather than run time check.

1.2 May 5, 2000

- Log/ Added callbacks parameter to Log::Dispatch->new.  I
  will also be adding this to the Log::Dispatch::* classes via
  Log::Dispatch::Output but I wanted to get this new version out there
  because I think there are people out there who would benefit from

- Log/ Added docs section on why Log::Dispatch doesn't add
  newlines to outgoing messages.

1.11 Feb 24, 2000

- Realized I need to tweak the $VERSION in Log::Dispatch

1.1 Feb 24, 2000

- Upped version to 1.1 to indicate my confidence in this release (I'm
  just asking for bug reports, I know).

- Added accepted_levels method to Log::Dispatch::Output based on
  discussions with Dominique Dumont (author of the Log::Dispatch::Tk

- Canonical names for log levels are now the unabbreviated form
  (though the abbreviated ones used by syslog are still fine and there
  is no plan to deprecate them).  This really only affects what is
  returned by the new accepted_levels method.

1.010 Jan 17, 2000

- Fixed a bug in the DESTROY method of Log::Dispatch::Email that
  caused an annoying error and may have caused spurious emails to be
  sent (thanks to Radu Greab).

- Fixed a bug in Log::Dispatch::Email::MailSendmail.  For some reason
  this module demands a 'from' address.

1.009 Jan 2, 2000

- Created this version simply to address an issue with CPAN and my
  internal version numbers having a conflict.  This has no changes
  from 1.008.

1.008 Dec 30, 1999

- Fixed a bug causing unitialized value warnings with -w (oops).

- Fixed a minor mistake in Log::Dispatch::Syslog docs (thanks to Ilya

- Put newlines into messages in SYNOPSIS sections for some modules.
  This is to clarify that you need to do this.  Just to be clear,
  Log::Dispatch does not alter message content in any manner
  whatsoever (and never will).  However, it would be trivial to
  subclass Log::Dispatch to do this.

1.007 Dec 1, 1999

- First public release.  It passes its own test suite so it should
  work (he says hopefully).