Originally posted by Arvind Shukla:
You assumption is right, every JVM will have its own instance of singleton.
Originally posted by Ali Pope:
I am not saying this is bad. Object creating costs are not so high - maybe just as regards the garbage collection (short living objects).
I am not an adept of re-inventing the wheel. Logging - even if it seems simple - may raise problems (concurrency, etc).
./pope
Originally posted by Ali Pope:
Indeed. This technique is recommended for large hierachies/application. There you will need to log the module and not every particular class. Instead, in a smaller application you can use the simple way:
./pope