in reply to My promiscous singleton
Hi, not really an answer to your question about globals, but:
"So I want a logger object, and only one logger object though it may be used in various packages ... Controls both logging to a file and to the screen ... you can set a verbosity for each independently
Unless you are doing this a learning exercise, why not use Log::Any and the Log::Any::Adapter::Dispatch output adapter which allows you to do exactly what you specified, out of the box?
Hope this helps!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: My promiscous singleton
by Random_Walk (Prior) on Dec 29, 2019 at 23:40 UTC | |
by afoken (Chancellor) on Dec 30, 2019 at 09:32 UTC | |
by Random_Walk (Prior) on Dec 31, 2019 at 09:41 UTC |