I'm reposting this question since I wasn't a member of the mailing
list when I posted this on Yahoo so I don't think it showed up.
I have the following settings in my log4j.properties file:
log4j.rootLogger=DEBUG, stdout, normal
log4j.logger.SomeUniqueString=DEBUG, requestLog
# Setup stdout
My set up is that weblogic (6.1sp3) is being run in development mode. I
have an EAR deployment and then a web app deployed in expanded directory
format. In weblogic, this setup is nice for development because it lets me
move class files out to the web-app without having to restart the server for
P.S. The web-app was initially deployed (and still is on staging and
production environments) in WAR format. There was no problem with that set
up...
-Original Message-
From: Ebersole, Steven
Sent: Thursday, June 12, 2003 9:53 AM
To: Log4j user list (E-mail)
Subject:
Its a custom package we wrote to maintain logins between different apps
within weblogic. Here it basically binds sessions between the web-app and
the EAR file.
Do you think changing configureAndWatch() to simply configure() would have
any effect?
-Original Message-
From: Ceki Gülcü
Hi there,
Could some experts help me with the following question?
I am using DailyRollingFileAppender and when i just has one client thread dump the log
messages, it is fine. But when i have 2 threads dump the logs, there seems some
blocking issues - the whole application supposed to finish in
i never used daily-rolling-file-appender, but I don't think this is the problem. My
personal guess is that you'll get same results with any FileAppender and most chances
with ANY appender.
I believe that you have synchronization problem with the rendering of the log message.
check sync
Thanks Alison!!
Now I'm almost ready with my configuration, but the last (I hope) problem is where to
put the log4j.properties for the common classes. I've tried putting the file inside
the jar, on the root folder, and initializing it with the next sentence on a static
block, in a class located
If you load the properties file with a file name, it will look for the file
in the location where the java process was started unless you provide an
absolute path to the file. The better way to do this is load it off the
classloader and then provide it as an inputstream or URL to the configure
Michael,
I don't know if this is significant or not, but it
doesn't appear that you have a layout specified for the Appender
that is being used by the SomeUniqueString Logger.
/bob
Please respond to Log4J Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:
Subject:Using a
Carlos Roberto Yaconi Hitschfeld wrote:
Thanks... But, can you give some example please??
I'm newbie with log4j and I don't know how to do it.
http://java.sun.com/j2se/1.4.1/docs/api/java/lang/ClassLoader.html#getResourceAsStream(java.lang.String)
Erik
Dear all
I have one question about NDC element and Filter rules.
Is it possible to make a StringFilter for a NDC value ?
Example:
Following filter rule for a file appender
filter class=org.apache.log4j.varia.StringMatchFilter
param name=StringToMatch value=1234/
param
Depends where the properties file exists. For example (in examples below
MyClass.class is used so you can access this behavior in static contexts as
well as instance contexts. If you have a current instance, you can use
this.getClass())...
//loads my.properties in the same relative package
Does someone know the trick for this?
How do I attach an appender to AsyncAppender in the config file (
log4j.properties )?
Thanks
-Viv
Finally it worked!!!
Thank you very much for your help.
Best Regards!
Carlos Yaconi Hitschfeld
-Mensaje original-
De: Jacob Kjome [mailto:[EMAIL PROTECTED]
Enviado el: Jueves, 12 de Junio de 2003 13:51
Para: Log4J Users List
Asunto: RE: Problem configuring log4j with common classes
The AsyncAppender cannot be set a config file in properties
format. This is documented in the javadocs for PropertyConfigurator.
The PropertyConfigurator does not handle the advanced configuration
features supported by the DOMConfigurator such as support for Filters,
custom ErrorHandlers,
Hi Christian,
Search the archives for discussions on custom loggers using wrappers vs
inheritance. Actually, this was just discussed rather recently. The
wrapper the recommended way to go.
Jake
At 01:04 PM 6/12/2003 -0600, you wrote:
Hi folks,
Supposing I had a need to create and use a
/taglib
and the context for my app in servlet.xml
Context path=/myapp
reloadable=true
docBase=/home/chuisman/workspace/myapp
workDir=/home/chuisman/workspace/myapp/work/org/apache/jsp /
and my log4j.properties file:
log4j.rootLogger=DEBUG, A1
Sorry,
A portion of my message was cut off (cut and paste problem). Here is what i
had intended:
Hello,
I am having trouble getting my jsps to use the log taglib, using Tomcat
4.1.24, under linux with the latest log4j and logging taglib.
I can initialize and use log4j from a servlet, but
Howdy,
What's your use-case / what are your requirements for this custom
logger?
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Christian Cryder [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 3:04 PM
To: LOG4J Users Mailing List
Subject: Custom loggers
Hi
I removed the layout sections and other initialization properties to
make the post more compact. Here are my layout and other settings:
log4j.rootLogger=DEBUG, stdout, Default
log4j.logger.CWBCImport=DEBUG, requestLog
# Setup stdout appender
20 matches
Mail list logo