[JBoss-user] [Installation & Configuration] - Re: need example arg for getLoggerLevel
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821530#3821530 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821530 Hm. On 3.2.1 and 3.2.3, Jboss picks up modifications of log4j.xml within the next 30 seconds without a reboot. --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation & Configuration] - Re: need example arg for getLoggerLevel
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821355#3821355 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821355 Hi, thats right modifying the log4j need a reboot. But you can init some default settings like your default level. When you like to change the level on the fly try the following: Logger log= Logger.getRootLogger(); //Logger log= Logger.getLogger("myApp"); log.setLevel(Level.DEBUG); ... log.setLevel(Level.INFO); regards, Uli --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation & Configuration] - Re: need example arg for getLoggerLevel
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821241#3821241 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821241 I dont know how to use the getLoggerLevel mehtod but there is a smarter way to configure your level attribute! Go to the conf/log4j.xml file and add a new category e.g. like this category name="myApp.myCat" priority value="INFO" appender-ref ref="CONSOLE" category and then init your Logger to Logger log= Logger.getLogger("myApp.myCat"); there you are (do the same with your own appenders). regards, Uli --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user