File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Assigning log4j log levels to logging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Assigning log4j log levels to logging "business" information" Watch "Assigning log4j log levels to logging "business" information" New topic
Author

Assigning log4j log levels to logging "business" information

Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
I was wondering where in the log4j levels I should assign "business" info.

1) INFO ? In that case I get all the warnings and errors and crap as well.

2)BIZZ? - a new level, turning off all errors, warnings, info, debug.

3)Use separate logger only for "business" information and log at INFO level.

All comments, ideas welcome.
Thanks,
-Barry


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
I reckon I can assign an LevelMatchFilter to an Appender to get just the INFO level messages out to a file.
[ September 24, 2004: Message edited by: Barry Gaunt ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Assigning log4j log levels to logging "business" information
 
Similar Threads
Logging Vs Performance
Writing to a log file
Tiles problem
Reg :log4j
Log4J - Basics