Skip Menu |

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

Report information
The Basics
Id: 7249
Status: resolved
Priority: 0/
Queue: Log-Dispatch-File-Stamped

People
Owner: CHOLET [...] cpan.org
Requestors: richard_david_evans [...] yahoo.co.uk
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.01
Fixed in: 0.02



Subject: L:D:F:S instances lose their 'name' attribute
Hi Eric I've been unable to get log_to working with L:D:F:S instances, I think the reason why is as follows: 'name' is the Log::Dispatch::Output attribute used to identify unique instances, but it's getting overwritten in the L:D:F:S constructor: # split pathname into path, basename, extension @$self{qw(name path ext)} = fileparse($params{filename}, '\.[^.]+'); The solution should be simply renaming this attribute here and in _make_handle so it doesnt clash. Best wishes, Richard
[guest - Wed Aug 4 08:36:47 2004]: Show quoted text
> Hi Eric > > I've been unable to get log_to working with L:D:F:S instances, I think > the reason why is as follows: > > 'name' is the Log::Dispatch::Output attribute used to identify unique > instances, but it's getting overwritten in the L:D:F:S constructor: > > # split pathname into path, basename, extension > @$self{qw(name path ext)} = fileparse($params{filename}, '\.[^.]+'); > > The solution should be simply renaming this attribute here and in > _make_handle so it doesnt clash. > > Best wishes, > Richard
Hi Richard, Thanks for the bug report. I've just uploaded version 0.02 to CPAN which fixes this bug and adds a test for it. Pleast let me know if this works for you so that this bug may be closed.