logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yi Chen" <yi.c...@verizon.com>
Subject RE: weblogic6.1 & log4j
Date Mon, 02 Dec 2002 18:54:29 GMT


Steven,

Thanks a lot for the tips. When following your instructions, I noticed that
we had axis.jar in our classpath. axis.jar has its own log4j.properties
inside which is first located by the class loader of weblogic. Now
everything is all right.

Thanks again!

Yi


-----Original Message-----
From: Ebersole, Steven [mailto:steven.ebersole@vignette.com]
Sent: Monday, December 02, 2002 10:00 AM
To: 'Log4J Users List'
Subject: RE: weblogic6.1 & log4j


I am also using WL under Solaris, so I'm pretty sure that that is not the
problem.

Are those first two lines valid inside the properties file?  Especially,
log4j.debug since it will look for that even prior to attempting to locate
the config file.  When you start weblogic, you should see some messages
dumped to the console prefixed with LOG4J:  Do you see these?  What do they
say?

Also try removing the first 2 lines from the prop file; you can set them
using java system properties as follows:
   java ... -D log4j.debug=true -D VASP_LOG_HOME=/vobs/vasp/log ...
weblogic.Server
in your startWebLogic.sh script.




    |-----Original Message-----
    |From: Yi Chen [mailto:yi.chen@verizon.com]
    |Sent: Monday, December 02, 2002 8:48 AM
    |To: Log4J Users List
    |Subject: RE: weblogic6.1 & log4j
    |
    |
    |
    |Steven,
    |
    |here is what my log4j is like:
    |
    |===========================================================
    |=================
    |=
    |log4j.debug=true
    |# /vobs is a directory under the root of a unix file system
    |VASP_LOG_HOME=/vobs/vasp/log
    |log4j.rootLogger=DEBUG, DebugRootAppender, InfoRootAppender,
    |ErrorRootAppender
    |log4j.logger.net.veriaon.vasp=DEBUG, DebugRootAppender,
    |InfoRootAppender,
    |ErrorRootAppender
    |
    |# Set attributes for appender:  DebugRootAppender
    |log4j.appender.DebugRootAppender=org.apache.log4j.RollingFi
    |leAppender
    |log4j.appender.DebugRootAppender.layout=org.apache.log4j.Pa
    |tternLayout
    |log4j.appender.DebugRootAppender.File=${VASP_LOG_HOME}/debug.log
    |log4j.appender.DebugRootAppender.MaxBackupIndex=19
    |log4j.appender.DebugRootAppender.MaxFileSize=40MB
    |log4j.appender.DebugRootAppender.Threshold=DEBUG
    |
    |# Set attributes for appender:  InfoRootAppender
    |log4j.appender.InfoRootAppender=org.apache.log4j.RollingFil
    |eAppender
    |log4j.appender.InfoRootAppender.layout=org.apache.log4j.Pat
    |ternLayout
    |log4j.appender.InfoRootAppender.File=${VASP_LOG_HOME}/info.log
    |log4j.appender.InfoRootAppender.MaxBackupIndex=9
    |log4j.appender.InfoRootAppender.MaxFileSize=20MB
    |log4j.appender.InfoRootAppender.Threshold=INFO
    |
    |# Set attributes for appender:  ErrorRootAppender
    |log4j.appender.ErrorRootAppender=org.apache.log4j.RollingFi
    |leAppender
    |log4j.appender.ErrorRootAppender.layout=org.apache.log4j.Pa
    |tternLayout
    |log4j.appender.ErrorRootAppender.File=${VASP_LOG_HOME}/error.log
    |log4j.appender.ErrorRootAppender.MaxBackupIndex=9
    |log4j.appender.ErrorRootAppender.MaxFileSize=4MB
    |log4j.appender.ErrorRootAppender.Threshold=ERROR
    |
    |===========================================================
    |=================
    |==
    |
    |I put log4j-1.2.7.jar and log4j.properties in the same directory
    |(bea/wlserver6.1/lib/vasp) and this directory itself is
    |also added as
    |classpath. It didn't have problem finding this property
    |file. I did some
    |search over the internet and it seems like log4j has
    |problem loging stuff
    |under wl6.1 and solaris OS according to several findings.
    |What's your OS?
    |
    |Thanks,
    |
    |Yi
    |
    |
    |-----Original Message-----
    |From: Ebersole, Steven [mailto:steven.ebersole@vignette.com]
    |Sent: Saturday, November 30, 2002 1:46 PM
    |To: 'Log4J Users List'
    |Subject: RE: weblogic6.1 & log4j
    |
    |
    |I use log4j along with weblogic (6.1 through 6.1 sp3) with
    |no problems.
    |
    |I too, have log4j.properties on the WL server classpath
    |(as well as the
    |log4j.jar file).  Where is your log4j.jar file?  Are you
    |using any other
    |components which might be using log4j(there are quite a
    |few libraries
    |nowadays which use log4j for logging)?  What does your
    |log4j.properties file
    |look like?
    |
    |
    |
    |    |-----Original Message-----
    |    |From: Yi Chen [mailto:yi.chen@verizon.com]
    |    |Sent: Friday, November 29, 2002 10:22 AM
    |    |To: log4j-user@jakarta.apache.org
    |    |Subject: weblogic6.1 & log4j
    |    |
    |    |
    |    |Do we have anyone is this list using log4j for weblogic6.1
    |    |based web
    |    |application? I found something strange: the logger
    |    |(created in a jsp page)
    |    |can write to the weblogic console even I didn't config the
    |    |console appender
    |    |in log4j.propertiesl and I don't see any output to the
    |    |assigned log file. By
    |    |the way, I put log4j.properties in weblogic classpath. Any
    |    |information will
    |    |be appreciated.
    |    |
    |    |Thanks,
    |    |
    |    |Yi
    |    |
    |    |
    |    |
    |    |--
    |    |To unsubscribe, e-mail:
    |    |<mailto:log4j-user-unsubscribe@jakarta.apache.org>
    |    |For additional commands, e-mail:
    |    |<mailto:log4j-user-help@jakarta.apache.org>
    |    |
    |
    |--
    |To unsubscribe, e-mail:
<mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>




--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>




--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message