I am trying to configure logger just for learning log4j.
I have log4j xml file like this
In the
java code i am fetching this category
I have the main class which is calling the traceMessage and TraceDebugMessage as follows
My problem is
i have mentioned the category priorty as fatal in log4j xml.
and in the MyLogger class i am trying to print debug and warn like this.
objTraceLogger.warn(sbMessage);
objAlertLogger.debug(sbMessage.toString());
It should not have allowed as priority has been set for fatal only. But in the log file i am able to see the logs whenerver i am runnig the application.
What am i doing wrong here ?
Need Help!!