I’ve been playing with the idea of making a new version of Log::Dispatch that breaks some things.
There are a few changes I’d like to make …
First, I want to trim back the core distro to only include a few outputs. This would just be those outputs which are truly cross-platform and don’t require extra dependencies. Right now that would be the Code, File, Handle, Null, and Screen outputs. I might also borg rjbs’s Log::Dispatch::Array, since it’s so darn useful for testing.
Here’s my plan for the other outputs:
- Syslog – release it and maintain it myself
- File::Locked – release it once and look for another maintainer
- ApacheLog – up for grabs
- Email outputs – up for grabs, but maybe I’d do a single release of the Email::Sender based output and look for a new maintainer
FWIW, I no longer have my programs send email directly. I log to syslog and use a separate log monitoring system to summarize errors and email me that summary.
I’d also like to change how newline appending is done so this has more sensible defaults. This means defaulting to appending a newline for the File & Screen outputs, but not for others like Code or Syslog.
As far as core API changes, while I think the core
->debug()/info()/etc() methods would stay the same, I might want to make changes to some of the other methods.
I also plan to move to Moo internally, just to clean things up.
So given all this, what’s the best course of action? Should I just go ahead and release Log::Dispatch 3.0, along with Log::Dispatch::Syslog 3.0, etc.? Or should I actually rename the distro to Log::Dispatch3 or something like that so that the two can co-exist on CPAN? I’m leaning towards the latter right now.
Finally, if anyone has any other suggestions for improvements to Log::Dispatch I’d love to hear them.