Re: Filter rules for DOMConfigurator and NDC

2003-06-13 Thread Ceki Gülcü
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

RE: JDBC Appender in Logger

2003-06-13 Thread Ramadoss Chinnakuzhandai
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,

DailyRollingFileAppender is writing to previous date file

2003-06-13 Thread MEHMET EMIN CELIK (EBI Bsk. - Analist Programci)
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

Using log4j with multiple tomcat workers

2003-06-13 Thread Scott Burns
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

RE: Using a specific appender at runtime and calling it by name?

2003-06-13 Thread Inderdeep Dhir
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

RE: Filter rules for DOMConfigurator and NDC

2003-06-13 Thread Joerg Eggink
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

log4j and security manager

2003-06-13 Thread Phillip Qin
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 {

RE: Custom loggers

2003-06-13 Thread Christian Cryder
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

RE: Custom loggers

2003-06-13 Thread Shapira, Yoav
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!

problem with RollingFileAppender

2003-06-13 Thread Raj Nella
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:

RE: problem with RollingFileAppender

2003-06-13 Thread Phillip Qin
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

Re: problem with RollingFileAppender

2003-06-13 Thread Alison Ortega
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

RE: problem with RollingFileAppender

2003-06-13 Thread Raj Nella
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]

RE: problem with RollingFileAppender

2003-06-13 Thread Phillip Qin
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

Re: problem with RollingFileAppender

2003-06-13 Thread Raj Nella
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

RE: problem with RollingFileAppender

2003-06-13 Thread Ebersole, Steven
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

RE: problem with RollingFileAppender

2003-06-13 Thread Raj Nella
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

RE: Filter rules for DOMConfigurator and NDC

2003-06-13 Thread Mark Womack
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:

SMTPAppender security flaw?

2003-06-13 Thread Phillip Qin
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

RE: SMTPAppender security flaw?

2003-06-13 Thread Scott Heaberlin
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

Log4j 1.2.4 tomcat 4.1.18

2003-06-13 Thread Scott Burns
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