At 07:17 PM 6/12/2003 +0200, Joerg Eggink wrote:
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
yes
-Original Message-
From: N.Swaminathan [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 2:12 PM
To: Log4J Users List
Subject: JDBC Appender in Logger
Hi,
Is it possible to have 2 JDBCAppender in the properties file.
would appreciate your feedback.
Thanks Regards,
on start day sistem creates the log file named TASK
writes data continuously on every milisecond
on dayend log4j is closing TASK. renaming the TASK file to TASK.SOMEDATE and
creates new TASK file
But the new first 3-4 seconds data is written to TASK.SOMEDATE (file is
overrided so we lose all
I have to setup log4j for use with multiple tomcat workers. Any special
setup need to have these n workers write to a single file? Each context
will write to a single file for that context. Also are there any
special types of appenders or anything else I should be aware of? I am
awaiting my
Hi Michael,
Try setting the system property log4j.debug to true (-Dlog4j.debug=true
on your java command line). This will give you a detailed output of
log4j processing on your console which might help you debug the problem.
Hope that helps,
~ Inder
-Original Message-
From: Michael
Dear Ceki Gülkü and all
Thank you very much ! It's working.
I include the NDCMatchFilter from the following page in the log4j.jar
http://cvs.apache.org/viewcvs/jakarta-log4j-sandbox/src/java/org/apache/
log4j/filter/
With the following filter rule it is working.
filter
My log4j.properties is located in WEB-INF/classes, log messages go to
${Catalina.home}/logs/myapp_debug.txt.
I started Tomcat, everything worked fine.
I started Tomcat -security, initializing logger failed. Access denied to
myapp_debug.txt. So I added following entry to Catalina.policy
Grant {
Hi Jake!
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.
Actually, I tried this and couldn't find the link to the archives on the web
page anywhere...can you point
Howdy,
I like the ones at AIMS:
http://marc.theaimsgroup.com/?l=log4j-userr=1w=2
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Christian Cryder [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 10:25 AM
To: Log4J Users List
Subject: RE: Custom loggers
Hi Jake!
Hi,
I'm testing log4j on WSAD 5.0 and i coded a
intilzation servlet. I added 3 appenders to the
rootlogger, 2 of which(console and LF5Appender) are
working fine, but there is some problem with the
RollingFileAppender. I dont see the log file created.
here is my config file:
Did you set the threshold?
-Original Message-
From: Raj Nella [mailto:[EMAIL PROTECTED]
Sent: June 13, 2003 11:29 AM
To: [EMAIL PROTECTED]
Subject: problem with RollingFileAppender
Hi,
I'm testing log4j on WSAD 5.0 and i coded a
intilzation servlet. I added 3 appenders to the
You could turn on debugging:
-log4j.debug=true
Also, the directory for the log file must exist. It will create the
file, but the dir must be there.
Alison Ortega
North Carolina State University
ACS
Systems Programmer II
919-513-1417
i just started using log4j for my academic project, i
have no idea about setting the threshold
--- Phillip Qin [EMAIL PROTECTED] wrote:
Did you set the threshold?
-Original Message-
From: Raj Nella [mailto:[EMAIL PROTECTED]
Sent: June 13, 2003 11:29 AM
To: [EMAIL PROTECTED]
I think default is no level. To set it,
log4j.appender.R.Threshold=DEBUG
You can also ONLY log ERROR or FATAL, simple replace DEBUT with ERROR or
FATAL.
-Original Message-
From: Raj Nella [mailto:[EMAIL PROTECTED]
Sent: June 13, 2003 11:43 AM
To: Log4J Users List
Subject: RE: problem
the directory exists. when i added log4j.debug=true
the following messages appeared:
[6/13/03 10:44:37:140 PDT] 6623ee73 SystemOut O
log4j: Parsing for [root] with value=[debug, stdout,
R, A1].
[6/13/03 10:44:37:140 PDT] 6623ee73 SystemOut O
log4j: Level token is [debug].
[6/13/03
The file is set to C:Log4jTestLog4jTesterWebContentexample.log
look in your c: dir for this file...
You are using incorrect directory seperator. You either need to specify:
1) C:\\Log4jTest\\Log4jTester\\WebContent\\example.log
2) C:/Log4jTest/Log4jTester/WebContent/example.log
there is no such file im c:
i did use
C:\\Log4jTest\\Log4jTester\\WebContent\\example.log
and now it worked fine...so it was correct directory
seperator that made the trick!!!
Thank you
Raj.
--- Ebersole, Steven [EMAIL PROTECTED]
wrote:
The file is set to
Yes, the plan is to include these in the v1.3 version of log4j. They are in
the sandbox to make it easier for their review and development. If you have
any ideas or suggestions, please let us know.
thanks,
-Mark
-Original Message-
From: Joerg Eggink [mailto:[EMAIL PROTECTED]
Sent:
Having played around log4j under security manager, I found that method
activateOptions in SMTPAppender has a suspicious security flaw.
The first statement of the method is to System.getProperties. This forces me
to grant read and write permission to * (all system properties) in policy
file. Why
This might be a question better suited for the log4j-dev list than the
log4j users list. [EMAIL PROTECTED]
As a suggestion, you could submit a bug report requesting the SMTP
appender (and perhaps the rest of log4j - it is up to you) only retrieve
the exact properties they need, for security
I have apps that are working fine with this setup and tomcat 4.06 when I
migrated to tomcat 4.1.18 I am getting duplicate( and modified) logging
written to catalina.out Any suggestions on why this is happening?
Thanks
Scott
Catalina.out
1040 [Ajp13Processor[8015][49]] DEBUG
21 matches
Mail list logo