View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3820054#3820054
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3820054 Got a question about using the Java API's logging framework and JBoss. I do the following: ... Logger logger = Logger.getLogger(getClass().getPackage().getName()); logger.info("This is a test message."); ... In the JBoss's server log (and console) I get the following: 11:11:08,813 ERROR [STDERR] Feb 3, 2004 11:11:08 AM TestBean setName INFO: This is a test message. Now, I'm happy that I get my log message printed to both the console and server.log file but why is it labeled as an ERROR [STDERR] message? I invoked the info() method from the logger? How do I get it to be labeled as an INFO (or whatever it should be) message on the first line of the output? It does label it as INFO on the second line however. Now if I instead use System.out.println() it is labeled as an INFO message and if I use System.err.println() it is labeled as an ERROR message in both the console and server.log. Thanks for any help! ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user