jQuery in Action, 2nd edition*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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