Custom Level Threshold Ignored
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Jamie_Cash
Posted On:   Friday, March 24, 2006 05:53 AM

I have created a custom level that works as far as logging is concerned, but is ignored when set as a threshold. The level is defined as follows: public class BusinessLevel extends Level { //Business Level Integer Values public static final int BUSINESS_INT = FATAL_INT + 10000; //Business Levels public static final Level BUSINESS = new BusinessLevel(BUSINESS_INT, "BUSINESS", SyslogAppender.LOG_LOCAL0); /** * Constructor * * @param level * @param levelStr * @param syslogEquivalent */ public BusinessLevel(int level, String levelStr, int syslogEquivalent) { super(level, levelStr, sy   More>>

I have created a custom level that works as far as logging is concerned, but is ignored when set as a threshold.


The level is defined as follows:


			
public class BusinessLevel extends Level
{
//Business Level Integer Values
public static final int BUSINESS_INT = FATAL_INT + 10000;

//Business Levels
public static final Level BUSINESS = new BusinessLevel(BUSINESS_INT, "BUSINESS", SyslogAppender.LOG_LOCAL0);

/**
* Constructor
*
* @param level
* @param levelStr
* @param syslogEquivalent
*/
public BusinessLevel(int level, String levelStr, int syslogEquivalent)
{
super(level, levelStr, syslogEquivalent);
}
}



When I set the threshold to fatal, both fatal and business errors are logged. This is correct. But when I set the threshold to business, all levels are logged.


My appender config is as follows:


			












What am I doing wrong?


Any help would be much apprecieated.


Regards


Jamie    <<Less
About | Sitemap | Contact