Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Logging strategies in large applications

 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

http://logging.apache.org/log4j/docs/
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would be good to look at Jakarta's commons logging stuff. This is a layer which sits on top of log4j (or whatever) so you are not tied into one logging framework.
 
Your buns are mine! But you can have this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic