RE: Clearing Logs Files on the fly

2003-06-24 Thread vikaas Karwal
Dear Yoav Shapira, Thanks for the reply. Actually, it's a user's requirement. User may want to delete all the logs. So, we need to accomplish it programmatically. Is there any parameter which we can set in the log4j.properties file to clear all the logs? Thanks, Vikaas Karwal -Original Me

partial logging

2003-06-24 Thread Zoltan Grose
Hi, I'm trying to troubleshoot a problem and am looking for some tips on places to check. I have a servlet application running in tomcat that has been using log4j just fine. Recently (last few days?) the log entries for some of the classes no longer appear. I know the log4j.xml file is being re

RE: RollingFileAppender logs to console, why?

2003-06-24 Thread Jacob Kjome
Log4j, by default, uses a single logger repository. So, unless you log within the context of your own custom logger repository, the last entity to configure log4j will have configured log4j for every app using the default logger repository. This is not usually a concern in a standalone app, bu

RE: RollingFileAppender logs to console, why?

2003-06-24 Thread Ruud Steeghs
> Are you sure you don't have a console appender > defined as well? yeah i am sure about that. > Are you > sure log4j is configured well, i.e. without errors? will check that in the morning (am at home right now) > Are you running > within a container that's also using log4j? Websphere Applicati

RE: RollingFileAppender logs to console, why?

2003-06-24 Thread Shapira, Yoav
Howdy, Are you sure you don't have a console appender defined as well? Are you sure log4j is configured well, i.e. without errors? Are you running within a container that's also using log4j? Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Ruud Steeghs [mailto:[EMAIL

RollingFileAppender logs to console, why?

2003-06-24 Thread Ruud Steeghs
Hi, I've configured log4j to log to a RollingFileAppender. However, it also logs to console. This is something I do not want. Anyone has any idea how to prevent log4j from logging to the console as well? regards, Ruud. __ Do you Yahoo!? SBC Yahoo! DSL - Now only $

RE: org.apache.log4j.spi.LoggingEvent

2003-06-24 Thread Ceki Gülcü
At 07:50 PM 6/24/2003 +0100, you wrote: Thanks Mark et al, I shall look at all the suggestions. Regarding immutability what was more of an issue for us was that although the LoggingEvent is currently immutable, we want to protect ourselves in case any future versions of LoggingEvent are not. I am

RE: org.apache.log4j.spi.LoggingEvent

2003-06-24 Thread Damian ONeill [AePONA]
Thanks Mark et al, I shall look at all the suggestions. Regarding immutability what was more of an issue for us was that although the LoggingEvent is currently immutable, we want to protect ourselves in case any future versions of LoggingEvent are not. Regards and thanks, Damian ONeill. Quoti

Re: Softpro books

2003-06-24 Thread Ceki Gülcü
At 12:18 PM 6/24/2003 -0400, you wrote: Ceki Gülcü wrote: As a side note, you might be interested in Tim Oreilly's essay entitled "Buy where you shop": http://tim.oreilly.com/values/buy_where_shop.csp Another reason to at least buy your O'Reilly books at SoftPro is that they have a buy 5 get

RE: org.apache.log4j.spi.LoggingEvent

2003-06-24 Thread Mark Womack
In version 1.3 a constructor was added to LoggingEvent so that it could be created with given information. This is used by some of the appender/receiver combos by Scott Deboy that do not serialize LoggingEvent obejcts across sockets. Instead they serialize XML, etc. That might get you what you w

Re: Softpro books

2003-06-24 Thread Erik Price
Ceki Gülcü wrote: As a side note, you might be interested in Tim Oreilly's essay entitled "Buy where you shop": http://tim.oreilly.com/values/buy_where_shop.csp Another reason to at least buy your O'Reilly books at SoftPro is that they have a buy 5 get 1 free plan (not sure about their Yahoo

Nothing getting logged

2003-06-24 Thread gfreiberger
My application logging works correctly sometimes. Other times, it writes a line to stdout: SystemOut U Exception grabbing/parsing servletInputStream:null Continuing... Anyone know what this could be? Thanks, G. Freiberger IT eBusiness Development ---

RE: org.apache.log4j.spi.LoggingEvent

2003-06-24 Thread Ebersole, Steven
Performance is directly related to the size/depth of the object being serialized. A LoggingEvent isn't very large (minus extensive MDC usage), so the impact should be minimal... -Original Message- From: Damian ONeill [AePONA] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 8:36 AM

Re: org.apache.log4j.spi.LoggingEvent

2003-06-24 Thread Damian ONeill [AePONA]
Thanks Steven, this will certainly solve my issue. Do you have any idea of how performant this method is? I am surprised that nobody else has asked for this type of functionality before in LoggingEvent. Is there a chance that LoggingEvent will ever be updated to support cloneable? Damian.

Re: org.apache.log4j.spi.LoggingEvent

2003-06-24 Thread Ceki Gülcü
Damian, The LoggingEvent class is intended to be immutable. At 02:25 PM 6/24/2003 +0100, you wrote: Thanks Ceki, but I cannot guarantee that adapter subclasses will not modify the LoggingEvent, as we are allowing 3rd Parties (not under our control) the ability to create Adapter subclasses. -- C

Re: org.apache.log4j.spi.LoggingEvent

2003-06-24 Thread Damian ONeill [AePONA]
Thanks Ceki, but I cannot guarantee that adapter subclasses will not modify the LoggingEvent, as we are allowing 3rd Parties (not under our control) the ability to create Adapter subclasses. Ceki Gülcü wrote: At 09:18 AM 6/24/2003 +0100, you wrote: We are using log4j for logging events to an e

Re: org.apache.log4j.spi.LoggingEvent

2003-06-24 Thread Ceki Gülcü
At 09:18 AM 6/24/2003 +0100, you wrote: We are using log4j for logging events to an event manager via the socket appender. The event manager is running in a separate process and uses a object input stream to build the received LoggingEvent. The Event Manager has a internal event chain that eve

RE: org.apache.log4j.spi.LoggingEvent

2003-06-24 Thread Ebersole, Steven
You could simply utilize serialization to perform this. Here is a code snippet I have in a utility class: public static Object deepCopy( Object incoming ) throws java.io.IOException { try { // Serialize the incoming out to memory ByteArrayOutput

RE: Clearing Logs Files on the fly

2003-06-24 Thread Shapira, Yoav
Howdy, When do you want to clear the files? If every time your system is started, simply set .Append=false to overwrite the file each time. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: vikaas Karwal [mailto:[EMAIL PROTECTED] >Sent: Tuesday, June 24, 2003 12:14 AM

RE: org.apache.log4j.spi.LoggingEvent

2003-06-24 Thread Shapira, Yoav
Howdy, And in fact, commons-lang has SerializationUtils which I use for other cases where I want to clone something that isn't cloneable. It's risky. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Scott Heaberlin [mailto:[EMAIL PROTECTED] >Sent: Monday, June 23, 200

RE: SMTP - Mail Content Size

2003-06-24 Thread Shapira, Yoav
Howdy, I'm not aware of such a parameter. I'm also not aware of previous requests for this parameter, so you may simply be the first one asking for it ;) Out of curiosity, can you come up with a java class that throws an exception whose stack trace is larger than, for example, 100KB? Yoav Sha

RE: Softpro books

2003-06-24 Thread Lutz Michael
If you don't mind me saying it, Congratulations Ceki! The book is excellent It's amazing how many questions in the User Group are answered in your book. Thanks so much for all you do. Another thing I like about the book, it also teaches the reader about many advanced Java concepts. Congrat

Accessing multiple log files

2003-06-24 Thread Milind Rao
I'm looking at using log4j to do logging in our application. Multiple clients on different machines will be logging events. The Message object in the LoggingEvent class is an instance of a proprietary Log class that contains a date. The Log class implements ObjectRenderer and contains a Dat

Softpro books

2003-06-24 Thread Ceki Gülcü
Hello all, I am happy to announce that in addition to the QOS.ch, the "The complete log4j manual" ISBN 2970036908 is now also available from Softpro books in Colorado and Massachusetts (USA). http://store.yahoo.com/softpro/2-9700369-0-8.html Softpro books can fulfill orders for customers throug

Re: org.apache.log4j.spi.LoggingEvent

2003-06-24 Thread Damian ONeill [AePONA]
We are using log4j for logging events to an event manager via the socket appender. The event manager is running in a separate process and uses a object input stream to build the received LoggingEvent. The Event Manager has a internal event chain that event sinks can register with to receive t