Menu

#2 Static init of Logger flawed.

open
nobody
None
5
2012-12-06
2010-09-17
uiltje
No

Static init of logger makes no sense. When an IOException occurs, it tries to log it...using the logger itself, which it cannot initialise... ad infinitum.

Also, no other exceptions are caught (i.e. no access/permission).

Attached patch also catches other exceptions and attempt to enable stdout as a last resort.

Please review and apply.

Discussion

  • uiltje

    uiltje - 2010-09-17
     
  • yohannmartineau

    yohannmartineau - 2010-09-22

    you're right, logger should not use logger when it fails...

    I take a look at it asap.

     
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.