I use log4perl with the configuration-file. I need to close the file_handle at the end of my Program (called periodically and uploads the log-file at the end). But where should I get the $appender reference?
Any suggestions?
Thanks
Kim
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I use log4perl with the configuration-file. I need to close the file_handle at the end of my Program (called periodically and uploads the log-file at the end). But where should I get the $appender reference?
Any suggestions?
Thanks
Kim
Got it by a short look into the source:
Log::Log4perl::appender_by_name("name_of_appender")->file_close();