output of debug,info,fatal to different files using the same logger instance
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   akshat_garg
Posted On:   Tuesday, September 23, 2003 12:45 AM

would like to know how can i give output of debug,info,fatal to different files using the same logger instance as i had given in the properties file.
i am unable to understand, how to use LevelMatchFilter in the properties file .

thanks in advance for the response

Re: output of debug,info,fatal to different files using the same logger instance

Posted By:   Anonymous  
Posted On:   Tuesday, September 23, 2003 02:46 AM

The program (or class or method ...) uses one Logger instance for doing the logging. The Logger takes all messages with all log levels. Then it gives the messages to all registered Appenders. And each of the Appenders decides whether to work with the message or not.


Therefore: configure with logger with multiple appenders and configure the appender to handle only log messages of a certain log level.


Because I haven´t done that I can´t give you any example, but the doc´s should help.

About | Sitemap | Contact