Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Log-Dispatch CPAN distribution.

Report information
The Basics
Id: 52065
Status: resolved
Priority: 0/
Queue: Log-Dispatch

People
Owner: Nobody in particular
Requestors: dolmen [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 2.26
Fixed in: (no value)



Subject: Extract Log::Dispatch::Syslog as a separate distribution to remove dependency on Sys::Syslog
The more CPAN dependencies you have, the harder packaging an application is. Log::Dispatch 2.26 has a 'require' dependency on Sys::Syslog. However Log::Dispatch::Syslog may not be used by the application that uses Log::Dispatch. For example, using Syslog on Windows is quite uncommon. Distributing Log::Dispatch::Syslog as a separate CPAN distribution would enable to remove the Sys::Syslog dependency from the main Log::Dispatch distribution. -- Olivier Mengué - http://o.mengue.free.fr/
Subject: Re: [rt.cpan.org #52065] Extract Log::Dispatch::Syslog as a separate distribution to remove dependency on Sys::Syslog
Date: Mon, 14 Dec 2009 13:38:48 -0600 (CST)
To: Olivier 'dolmen' Mengué via RT <bug-Log-Dispatch [...] rt.cpan.org>
From: Dave Rolsky <autarch [...] urth.org>
On Wed, 25 Nov 2009, Olivier 'dolmen' Mengué via RT wrote: Show quoted text
> Log::Dispatch 2.26 has a 'require' dependency on Sys::Syslog. However > Log::Dispatch::Syslog may not be used by the application that uses > Log::Dispatch. For example, using Syslog on Windows is quite uncommon. > > Distributing Log::Dispatch::Syslog as a separate CPAN distribution would > enable to remove the Sys::Syslog dependency from the main Log::Dispatch > distribution.
I've actually toyed with the idea of splitting out pretty much everything except Handle, File, and Screen. Given a supply of tuits, it just might happen. -dave /*============================================================ http://VegGuide.org http://blog.urth.org Your guide to all that's veg House Absolute(ly Pointless) ============================================================*/
Show quoted text
> I've actually toyed with the idea of splitting out pretty much everything > except Handle, File, and Screen. > > Given a supply of tuits, it just might happen.
Sigh. The only problem is that the built-in File and Screen outputs have broken defaults. File and Screen don't add a default newline (which, despite Log::Dispatch's historical attitude towards newlines, they really should, and I'm happy to argue this vociferously) and File does not append to a file by default, which very much goes against expectations and common usage. Unfortunately these can't be fixed without either changing the main classes and causing major backward incompatibility, or by adding new built-in classes that can be used instead. It's too bad, because I frequently want to illustrate Log::Any using Log::Dispatch file or screen, but it's really tedious having to work around the broken defaults all the time.
Show quoted text
> I've actually toyed with the idea of splitting out pretty much everything > except Handle, File, and Screen. > > Given a supply of tuits, it just might happen.
Sigh. The only problem is that the built-in File and Screen outputs have broken defaults. File and Screen don't add a default newline (which, despite Log::Dispatch's historical attitude towards newlines, they really should, and I'm happy to argue this vociferously) and File does not append to a file by default, which very much goes against expectations and common usage. Unfortunately these can't be fixed without either changing the main classes and causing major backward incompatibility, or by adding new built-in classes that can be used instead. It's too bad, because I frequently want to illustrate Log::Any using Log::Dispatch file or screen, but it's really tedious having to work around the broken defaults all the time.
RT-Send-CC: autarch [...] urth.org
Due to this issue Log::Dispatch does not installs cleanly on Windows as obviously Sys::Syslog can't be installed. -- Olivier Mengué - http://search.cpan.org/~dolmen/ http://github.com/dolmen/