, Log logger = LogFactory.getLog(MyCurrentClass.class); - (Struts2 Actions JSF Backing Beans), EJB 3 Beans.
, (, , , , , ..).
logger.debug("Debug message") , , ( Log4J DEBUG , ). / .., , , logger.isDebugEnabled().
, , LogFactory.getLog(), . .
For example, if you have a log for my.package.MyClassand use the library with the package org.library.*, you can configure the logging framework to enable debugging messages for my.package.*, but not for org.library.*. This way you can filter messages to get a smaller / improved readable log.
source
share