Meaningless Drivel is fun!*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Urlybird 1.1.1 logging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Urlybird 1.1.1 logging" Watch "Urlybird 1.1.1 logging" New topic

Urlybird 1.1.1 logging

Alenkhe David

Joined: Jul 31, 2008
Posts: 20
I am planing on a singleton logger class, that other classes can call to get an instance for logging purposes. Also would want to dump log records to file.

Any thoughts?


Jesus Regins..
satishkumar janakiraman
Ranch Hand

Joined: May 03, 2004
Posts: 334
Hi David,

Singleton is a best choice for cache, logger etc. Multiple instances of cache/logger will create complexity in the application.

Consider Paul's rocket mass heater.
subject: Urlybird 1.1.1 logging
Similar Threads
where to get info about commons logging, log4j and java.util.logging....
Class Instance being overwritten by new Instance
gonna see a man about a horse
Sub Level Logging
log4j apache common logging