I reduced log4j.xml down to its simplest form, i.e. customised loggers and appenders. But when I do the following:
Logger logger = Logger.getLogger("mypagkage.Myclass");
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.
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?