-
30. Re: JBoss 7 Logging
nickarls Aug 31, 2012 1:59 AM (in response to albertsese)With parent-handler="false", you shouldn't need them in the root handlers.
-
31. Re: JBoss 7 Logging
albertsese Aug 31, 2012 2:50 AM (in response to nickarls)Thanks. I'm a noob with Jboss AS 7 lol
-
32. Re: JBoss 7 Logging
moxprox Aug 31, 2012 3:21 AM (in response to jamezp)Yeah! You got it! Shame on me
Typo was bogus. Thank for your time!!!!
greetings,
Bernard.
-
33. Re: JBoss 7 Logging
rohanemmanuel Feb 19, 2013 12:04 AM (in response to jamezp)i wanted to use jboss logging in an standalone application....can you please let me how can i use it?
private static final Logger LOGGER = Logger.getLogger(JbossLogExample.class); i used the above logger but the log message are being printed on the console(INFO messages)....it didnt pick up the .properties file which has the file handler
logging.properties looks like this..
logger.level=DEBUG
# Root logger handlers
logger.handlers=FILE
# Console handler configuration
#handler.CONSOLE=org.jboss.logmanager.handlers.ConsoleHandler
#handler.CONSOLE.properties=autoFlush
#handler.CONSOLE.level=${jboss.boot.server.log.console.level:ALL}
#handler.CONSOLE.autoFlush=true
#handler.CONSOLE.formatter=PATTERN
handler.FILE=org.jboss.logmanager.handlers.FileHandler
handler.FILE.level=DEBUG
handler.FILE.properties=autoFlush,fileName
handler.FILE.autoFlush=true
handler.FILE.fileName=C:/jbosslogging.log
handler.FILE.formatter=PATTERN
# Formatter pattern configuration
formatter.PATTERN=org.jboss.logmanager.formatters.PatternFormatter
formatter.PATTERN.properties=pattern
#formatter.PATTERN.pattern=%d{HH:mm:ss,SSS} %-5p [%c] %s%E%n
formatter.PATTERN.pattern=%d{HH:mm:ss,SSS} %C.%M:%L (%t) %5p %c{1}:%L - %m%n
please advice.
Thanks
-
34. Re: JBoss 7 Logging
jamezp Feb 19, 2013 12:19 AM (in response to rohanemmanuel)You need to make sure you're using JBoss Log Manager and that it's set as the LogManager via the java.util.logging.manager system property; java.util.logging.manager=org.jboss.logmanager.LogManager. Then just place the the logging.properties file in your class path or use the logging.properties system property and set the path to your configuration file.
--
James R. Perkins
-
35. Re: JBoss 7 Logging
rohanemmanuel Feb 19, 2013 4:48 AM (in response to jamezp)thanks a lot James,
i was using the Logger.getLoggerr before setting the systemproperties...i changed the order and now its working...thanks a lot for your quick response..
Regards,
Rohan Emmanuel