I reduced log4j.xml down to its simplest form, i.e. customised loggers and appenders. But when I do the following:
import org.jboss.logging.Logger;
Logger logger = Logger.getLogger("mypagkage.Myclass");
logger.info("Some text");
nothing comes though to either the console or server.log, the two standard appenders for the root logger.
The log4j.xml file is being picked up by JBoss, because when I change the thresholds on the 2 standard appenders (CONSOLE and FILE), the JBoss console level of logging changes accordingly.
Please help.
Thanks, John
I am having the same trouble. Although my POJO's DO log, but my EJB's and MBeans do not. They all import the same libraries.
Any help here?