You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@juddi.apache.org by Bab <ba...@gmail.com> on 2008/02/06 12:07:57 UTC
Logging with jUDDI
Hello,
I am trying to get jUDDI to log information, but unable to achieve this. I
have read many things on the internet, but it looks like the information
available is a bit outdated.
I am using juddi-2.0rc5.jar on GlassfishV2UR1, with jdk/jre1.6.0_04. jUDDI
deploys fine and is happy. The UDDIbrowser works fine, I am able to create
businessEntities, services, tModels, etc.
I have tried to add a file log4j.properties in juddi\WEB-INF with:
----------- beginning of log4j.properties ----------------------
# Uncomment to have log4j be verbose while parsing this file
log4j.debug
# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=- %m%n
log4j.appender.CONSOLE.Threshold=DEBUG
# LOGFILE is set to be a RollingFileAppender appender using a
TTCCLayout.
log4j.appender.LOGFILE=org.apache.log4j.RollingFileAppender
log4j.appender.LOGFILE.layout=org.apache.log4j.TTCCLayout
log4j.appender.LOGFILE.layout.ContextPrinting=true
log4j.appender.LOGFILE.layout.DateFormat=ISO8601
log4j.appender.LOGFILE.MaxFileSize=10MB
log4j.appender.LOGFILE.MaxBackupIndex=3
log4j.appender.LOGFILE.File=C:\juddi.log
# Set root category priority to DEBUG and its appender to LOGFILE.
log4j.rootCategory=DEBUG, LOGFILE
# Set the Axis enterprise logger category to FATAL and its only appender to
CONSOLE.
log4j.logger.org.apache.axis.enterprise=DEBUG, CONSOLE
---------------- end of log4j.properties ------------------------
It didn't work.
I also tried to add to the file juddi.properties:
------------ beginning of juddi.properties -----------------------
# Direct the log message to a file
juddi.logging = true
juddi.logEnabled = true
juddi.logger = org.apache.commons.logging.impl.SimpleLog
juddi.log4j.appender.LOGFILE.File=C:\juddi.log
[file truncated]
------------ end of juddi.properties -----------------------------
I would really appreciate any idea, clue or suggestions.
Regards,
Bastian
--
View this message in context: http://www.nabble.com/Logging-with-jUDDI-tp15306471p15306471.html
Sent from the jUDDI - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-user-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-user-help@ws.apache.org