RE: Logging File Should not be created, if ThreshHold = OFF

2005-09-28 Thread Sriram Venkatasubramanian
I also like to do this: (1) and (2) of Taranbir's mail. I am using log4j.xml iso log4j.properties. Can any one tell me how to achieve ? -Original Message- From: Curt Arnold [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 28, 2005 8:42 PM To: Log4J Users List Subject: Fwd: Logging F

Re: What is correct for DailyRollingFileAppender?

2005-09-28 Thread Michael A Chase
On Wed, 28 Sep 2005 11:27:56 -0600, David Thielen wrote: > Do I do: >value="${catalina.home}/logs/tomcat-'-MMM-dd'.log"/> > or > > > And is > > Required? For 1.2.11, the date pattern is separate from the file name and the date/time value gets appended to the end of the

Re: Cannot turn off logging when using JUnit

2005-09-28 Thread Jacob Kjome
Quoting Mark Womack <[EMAIL PROTECTED]>: > Can we assume that you are using the 1.3 alpha version? You will want to add > configuration to set org.apache.log4j to WARN/ERROR or OFF. > I think at some point, the auto-logging of logger creation internal to Log4j-1.3 in CVS was removed. The current

What is correct for DailyRollingFileAppender?

2005-09-28 Thread David Thielen
Do I do: or And is Required? Thanks - dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

files not rolling over - debug dump

2005-09-28 Thread David Thielen
Hi; I ran last night with log4j debugging on and got: log4j: setFile called: C:\Tomcat 5.5/logs/tomcat.log, true log4j: setFile ended log4j: Appender [tomcat] to be rolled at midnight. log4j: Adding appender named [tomcat] to category [root]. WARN [TP-Processor3] No configuration found. Configur

Re: Cannot turn off logging when using JUnit

2005-09-28 Thread Mark Womack
Can we assume that you are using the 1.3 alpha version? You will want to add configuration to set org.apache.log4j to WARN/ERROR or OFF. hth, -Mark On 9/28/05, Rakesh Patel <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a test set up that logs and also the class under test logs too. > > I want to

RE: Missing scale in SizeBasedTriggeringPolicy#setMaxFileSize

2005-09-28 Thread Gary Gregory
Nevermind, must be bytes. I was thinking about a time-based appender. Gary > -Original Message- > From: Gary Gregory [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 28, 2005 8:36 AM > To: Log4J Users List; [EMAIL PROTECTED] > Subject: Missing scale in SizeBasedTriggeringPolicy#setM

Missing scale in SizeBasedTriggeringPolicy#setMaxFileSize

2005-09-28 Thread Gary Gregory
Hello: What is the scale of the API: Missing scale in SizeBasedTriggeringPolicy#setMaxFileSize? http://logging.apache.org/log4j/docs/api-unstable/org/apache/log4j/rolli ng/SizeBasedTriggeringPolicy.html#setMaxFileSize(long) Thanks, Gary --

Fwd: Logging File Should not be created, if ThreshHold = OFF

2005-09-28 Thread Curt Arnold
Begin forwarded message: From: Curt Arnold <[EMAIL PROTECTED]> Date: September 28, 2005 9:50:47 AM CDT To: Log4J Users List Subject: Re: Logging File Should not be created, if ThreshHold = OFF On Sep 28, 2005, at 9:07 AM, Taranbir I Singh wrote: Hi, I have disabled the logging through

Providing mock for Logging

2005-09-28 Thread Rakesh Patel
Hi, Is it possible to provide a mock version of the Logger class? I want to be able to pass a mock class for my unit tests. Thanks Rakesh Patel Project Architect IFST Tel: +44 (0)20 7153 4243 Fax: +44 (0)20 7153 4153 Mobile: +44 (0) 7921 582573 American Express Investments and American Expres

Logging File Should not be created, if ThreshHold = OFF

2005-09-28 Thread Taranbir I Singh
Hi, I have disabled the logging through this code log4j.rootLogger= ,TEST log4j.appender.TEST=org.apache.log4j.DailyRollingFileAppender log4j.appender.TEST.File=c:/temp2/testRolling.txt log4j.appender.TEST.DatePattern='.'-MM-dd log4j.appender.TEST.Threshold=OFF Now It is still creating test

Cannot turn off logging when using JUnit

2005-09-28 Thread Rakesh Patel
Hi, I have a test set up that logs and also the class under test logs too. I want to turn of logging at times but am finding that the console ALWAYS logs INFO messages of the loggers being created (my user defined log entries are not displayed). I've tried various settings in the property file b