Menu

reference needed: $appender->file_close()

Help
2005-09-05
2013-06-04
  • Kim Neunert

    Kim Neunert - 2005-09-05

    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

     
    • Kim Neunert

      Kim Neunert - 2005-09-05

      Got it by a short look into the source:
      Log::Log4perl::appender_by_name("name_of_appender")->file_close();

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.