logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Merten Schumann <Merten.Schum...@asg.com>
Subject Logger.setLevel() not supported in 2.0?
Date Wed, 23 Jul 2014 06:32:41 GMT
Hello,

from "Converting to the Log4j 2 API":
Calls to org.apache.log4j.Logger.setLevel() or similar methods are not supported in the API.
Applications should remove these.

Could imagine the reason, checking getLevel() is final, so it's quick.
But, when you have in your program your good old fixed static Logger log, it's often helpful
to toggle its logger level at runtime, when the method that should be investigated is reached
in the code or in the debugger ... enable DEBUG output and disable it again ...

Am I missing something? Nobody else missing this feature? :-)

Thanx
   Merten



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message