• Post Reply Bookmark Topic Watch Topic
  • New Topic

How can we design a proper logging system  RSS feed

 
Bhairava Surya
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

This is related to logging system.

Not sure in whcih forum to ask this. So asking here.

How can we design a proper logging system. Consider if I have multiple components and all are logging into the same log file.

 
Stephan van Hulst
Saloon Keeper
Posts: 7973
143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bhairava,

Can you be more clear in what you want? Do you just want to log messages in your program is some way, or do you want to design your own logging framework?

If you just want to log messages, take a look at the java.util.logging.* package, or the log4j framework.
 
John Jai
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use log4j logger & appender to write onto a same log file in different components. You can use log4j.properties to configure different layouts for different components i think.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!