This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi. I have a question about logging strategies used in applications like JBoss. JBoss has a logging file called server.txt , all information go to this file. Ofcourse, JBoss contains a huge number of classes, does JBoss create a single instance of logging object (singleton) and share this object with all classes ? (I think synchronization statments are used here) ... Please, correct me if I'm wrong. Thanks.
Check out the Log4j project as that is what JBoss uses for its logging. As far as I understand it, yes, JBoss creates a single instance of what is called the root logger from which all other loggers are created.
Log4j is more or less the defacto standard for logging in Java applications these days.