I am the author of the
Log4perl::KISS
module, and I want to convert the log_open
function so that it can switch the current log file on the fly at any time without full Log::Log4perl
reinitialization.
I know that the file appender in Log4perl
can switch to the file with the same name (this possibility was added to allow log rotation), but I need to switch to a different filename. I don't know how to change the filename used by the file appender before switching to another file handle.
How to change the appender's filename if it is possible?