Subject: | Initialization warning "Forgot to call init()?" although initialized and logging |
I get the following message:
Log4perl: Seems like no initialization happened. Forgot to call init()?
So far, this sounds like 77003. However, the difference is that I know that the initialization happened because I've been logging stuff all along.
The problem seems to be that during global cleanup, some of my DESTROY functions want to trace things, but this happens after Log4perl has already had its END functions called, and thus the ROOT_LOGGER is gone. That's when the message shows up - during cleanup.
I'm not entirely sure what can/should be done about this, but the warning is definitely misleading/wrong. The fact that the loggers are all now invalid and thus trace points could be lost is important information, but I'm not sure if a warning that can't be turned off is the way to go here.
Better might be to not delete the ROOT_LOGGER as part of END and just let it get cleaned up on its own. Not sure.