Closed GoogleCodeExporter closed 8 years ago
I agree with you.
Original comment by zhoushu...@gmail.com
on 21 Sep 2011 at 6:04
Here is a patch...
Searched for "DEBUG", if the variable is named otherwise somewhere, this is not
refactored.
Original comment by viliam.d...@gmail.com
on 22 Sep 2011 at 6:14
Here is a revised patch: I added some micro-optimization, that the test for
"isDebugEnabled" is not necessary, if there is not any processing before the
call to _log.debug is made, e.g. only a string constant is there. The test
takes place at the very beginning of the _log.debug method.
Original comment by viliam.d...@gmail.com
on 22 Sep 2011 at 6:39
Attachments:
Debug level is not set at compile-time -- it can definitely be set at runtime,
just need to restart the application; isDebugEnabled() may not be as
efficiently implemented with all loggers as is with log4j.
Original comment by Johnny.B...@gmail.com
on 1 Nov 2012 at 2:21
Original issue reported on code.google.com by
viliam.d...@gmail.com
on 21 Sep 2011 at 5:58