Log4J parameters

I am using log4J for logging. Is there a way to determine, how log4J saves these parameters,so that I can perform some sort of testing.
This is what I would like to do: I have various appenders, which are defined in the log4J configuration- so for my Junit test cases, I would like to call say method a ,which uses one sort of appender- then I would like to check and see if what log4j is using is the same sort of appender.This way,if anyone changes the config then this test would fail.
Thanks
ams7503Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
cmalakarConnect With a Mentor Commented:
User org.apache.log4j.Logger class and its getAppender or getAllAppenders method to find out the configured appenders
0
All Courses

From novice to tech pro — start learning today.