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