Subject: | module creates filenames with the pattern in them on startup. |
When using this module with the synopsis code, an empty file named 'Somefile%d{yyyyMMdd}.log' will be created in the directory alongside the proper file. I suspect this is because of line 66 in Log/Dispatch/File/Rolling.pm:
$self->_make_handle(%p);
Which will in turn call $self->_open_file() in Log/Dispatch/File.pm
Which will create a file using the uninterpolated filename string.
Removing this line appears to make the module function as intended, given that the first time log_message is called, it will call $self->_createFilename(), see that the interpolated value is not the correct value, and open a new file with the correct interpolated value. A bit of an unintended hack, but it works.