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: 47513
Status: resolved
Priority: 0/
Queue: Log-Dispatch

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

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



Subject: Log::Dispatch::File : add reopen() method
Adding a reopen() method (that just closes/opens the file handle) would ease the implementation of log rotation using external tools such as logrotate. The implementation in the Log::Dispatch::File class would benefit to all its subclasses such as Log::Dispatch::File::Rolling.
On Thu Jul 02 11:55:25 2009, DOLMEN wrote: Show quoted text
> Adding a reopen() method (that just closes/opens the file handle) would > ease the implementation of log rotation using external tools such as > logrotate. > > The implementation in the Log::Dispatch::File class would benefit to all > its subclasses such as Log::Dispatch::File::Rolling.
Did you mean to attach a patch to this?
Le Sam. Sep. 12 12:27:22 2009, DROLSKY a écrit : Show quoted text
> Did you mean to attach a patch to this?
Here is an implementation: sub reopen() { unless ($self->{close}) { close($self->{fh}) if exists $self->{fh}; $self->_open_file; } } Doc and tests still have to be written :(