Re: support of file.encoding system property

2002-03-25 Thread Oleg A . Paraschenko
Hello T Master, thank you for comments. On Mon, 25 Mar 2002 09:31:48 -0700 "T Master" <[EMAIL PROTECTED]> wrote: > > > Log the output to a file. then open the file in an editor supporting UTF-8 > chars e.g. IE browser. > Your console doesn't support UTF-8 characters, hence you see "?

RE: removeAllAppenders

2002-03-25 Thread Chris Lambert
I was doing this: Category root = Category.getRoot(); root.removeAllAppenders(); magically it started working today, but there was a distinct period where everything before and after this call worked by not the call itself. and (of course) I haven't been able to reproduce it. so it looks li

partitioning log4j into sub-systems

2002-03-25 Thread Janusz Dalecki
We have a very big system, with plenty of classes and sub-projects. I would like to configure log4j in such a way that categories are not particular classes (as it is now) but sub-systems (one class can belong to a few sub-systems) - is there any other way of doing that then introducing a property

RE: Log4J and multiple threads

2002-03-25 Thread Mark Womack
Mark, What is the thread doing that calls the appender's close method? Is it reconfiguring via a configureAndWatch() setup? It has to be something that would cause this. I have not seen log4j code just randomly close an appender. One thing that can happen when using the configureAndWatch() co

RE: removeAllAppenders

2002-03-25 Thread Mark Womack
Chris, how/where are you calling these methods? -Mark -Original Message- From: Chris Lambert [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 10:43 AM To: Log4J Users List Subject: removeAllAppenders has anyone noticed problems with removeAppender or removeAllAppenders using 1

RE: Appenders

2002-03-25 Thread Mark Womack
Will setting the threshold on the appenders do what you want? http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/AppenderSkeleton.h tml#setThreshold(org.apache.log4j.Priority) The above is for the 1.2 beta, but I believe it applies to 1.1.3 as well. -Mark -Original Message- From

Re: Missing Logger in v 1.1.3

2002-03-25 Thread chenone
Hi, you should use log4j-1.2 beta. because 1.1.3 has no logger class, it is Category. in 1.2, the Category has been replaced to Logger. B.R. chenyi - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 25, 2002 5:54 PM Subject: Missing Logger in v 1.

Customizing NTEventLogAppender

2002-03-25 Thread Janusz Dalecki
Is there any documentation how NTEventLogAppender generates Category, Event ID, User and Computer? We are trying to customize NT Viewer to our needs (set the filter to see only required logs). Regards Janusz -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: NDC.DiagnosticContext bug ?

2002-03-25 Thread Ceki Gülcü
Can you send me a patch? At 17:12 25.03.2002 -0500, you wrote: >My aim isn't to serialize the NDC itself, but the NDC stack (obtained by >calling NDC.cloneStack()). The NDC Stack contains DiagnosticContext >objects. In the scenario you mentioned, I would have to extract the Stack >from the NDC

RE: NDC.DiagnosticContext bug ?

2002-03-25 Thread Marvin Chase
My aim isn't to serialize the NDC itself, but the NDC stack (obtained by calling NDC.cloneStack()). The NDC Stack contains DiagnosticContext objects. In the scenario you mentioned, I would have to extract the Stack from the NDC, then recursively get the DiagnosticContexts from the Stack, convert

Re: NDC.DiagnosticContext bug ?

2002-03-25 Thread Ceki Gülcü
We do not serialize the NDC but it's string form. Isn't the string form enough for your needs? At 16:37 25.03.2002 -0500, you wrote: >Hello All, > >NDC (Nested Diagnostic Context) is a serializable class, but it's inner >class DiagnosticContext does not implement Serializable. I am attempting t

NDC.DiagnosticContext bug ?

2002-03-25 Thread Marvin Chase
Hello All, NDC (Nested Diagnostic Context) is a serializable class, but it's inner class DiagnosticContext does not implement Serializable. I am attempting to serialize the NDC Stack object (which contains DiagnosticContext objects) for transport and exceptions are being thrown because Diagnosti

RE: Forced logging

2002-03-25 Thread Bill Rebey
Yup - that fixed it. I had a bad FQCN. Thanks Mark and Venkat - It's working just fine now! Bill Rebey -Original Message- From: Mark Womack [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 2:49 PM To: 'Log4J Users List' Subject: RE: Forced logging Bill, The method I posted

Appenders

2002-03-25 Thread Benny Yu
Hi, I am trying to figure out how to assign different log level to different appenders for the same Category. I want to be able to log only ERROR level to console appender but at the same time log DEBUG in a file appender. Could someone point me to the right direction in accomplishing th

RE: Forced logging

2002-03-25 Thread Mark Womack
Bill, The method I posted is part of a wrapper class that we use for log4j Category. We did this so that we could buffer the calling code from specific implementations, so if in the unlikely event we wanted to replace log4j, we could just change the wrapper implementation and none of the calling

RE: Forced logging

2002-03-25 Thread Sonnathi, Venkat Ramana
FQCN should be the name of the wrapper class then you will get the correct results. Look at commons-logging module. Thanks, --Venkat. -Original Message- From: Bill Rebey [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25,2002 2:24 PM To: Log4J Users List Subject: RE: Forced logging Tha

RE: Forced logging

2002-03-25 Thread Bill Rebey
Thanks, Mark! I can at least get the desired log messages to come out now, but 90% of the purpose of using log4j is to get caller source location information (Class name, Method name, Source line number), which this appears not to do, so it doesn't quite work right. Furthermore, I implemented th

Log4J and multiple threads

2002-03-25 Thread Mark Kurley
I have written a custom appender and layout for our application. It runs in a multiple thread environment and I have noticed that one thread will call the close method then another thread will call the append method. This causes a null pointer exception because a resource was closed in the close

Re: DailyFileAppender question

2002-03-25 Thread Kevin Steppe
This is probably better for the User list... 1) I created a CompositeRollingFileAppender sometime back which a few people use. The code is attached along with a couple example config files. 2) To my knowledge none of the rolling appenders can do this. You are welcome to modify code... Kevin

removeAllAppenders

2002-03-25 Thread Chris Lambert
has anyone noticed problems with removeAppender or removeAllAppenders using 1.1.3? it seems to be failing silently to remove the console appender and custome appender I've added. - c -- - --- -- - --- -- - Christopher Lambert Lawrence Livermore

RE: configureAndWatch ?

2002-03-25 Thread Mark Womack
As mentioned, this method is supported on PropertyConfigurator and DOMConfigurator. I will also make a plug for some related extensions I have proposed for log4j that allow for more flexibility and source types than the current configureAndWatch() implementation. The extensions are stand alone a

RE: Forced logging

2002-03-25 Thread Mark Womack
Instead of using forcedLog, you can use something like this: public void status(Object message, Throwable t) { category.callAppenders(new LoggingEvent(FQCN, category, Priority.INFO, message, t)); } The above is a method we have to print "status" messages regardless of current logging set

Forced logging

2002-03-25 Thread Bill Rebey
I want to log certain messages regardless of the current Priority level. How do I do this? I thought I could use "Category.forcedLog (...)", but it's protected. What should I use instead? Thanks for the help! Bill Rebey === Confidentiality Statement ===

Re: support of file.encoding system property

2002-03-25 Thread T Master
Log the output to a file. then open the file in an editor supporting UTF-8 chars e.g. IE browser. Your console doesn't support UTF-8 characters, hence you see "". log4jv1.2 is beta now. beta 5 I believe. Not alpha. - Original Message - From: "Oleg A. Paraschenko" <[EMAIL P

RE: log4j used with e-mail

2002-03-25 Thread Ylan Segal
> oops, sorry, forgot about those other gotchas. I did have to add some > additional .jar files to my run directory and classpath. I don't know if > all of these are really needed, but here are the names. activiation.jar, > imap.jar, jndi.jar, mail.jar, mailapi.jar, pop3.jar, smtp.jar I also

Re: log4j used with e-mail

2002-03-25 Thread james . snyder
oops, sorry, forgot about those other gotchas. I did have to add some additional .jar files to my run directory and classpath. I don't know if all of these are really needed, but here are the names. activiation.jar, imap.jar, jndi.jar, mail.jar, mailapi.jar, pop3.jar, smtp.jar I also don't

Re: log4j used with e-mail

2002-03-25 Thread Leandro dos Santos Rosa
Hi, I´m trying to do this but i´m getting the following error: java.lang.NoClassDefFoundError: javax/activation/DataSource Somebody knows where can I find this package? Thanks for any help []´s Leandro dos Santos Rosa [EMAIL PROTECTED] - Original Message - From: <[EMAIL PROTECTED]> T

Re: log4j used with e-mail

2002-03-25 Thread james . snyder
Sure. The SMTP Appender does the job. You'll need an SMTP server to send the messages through. A few gotcha's that I learned while implementing: It only sends email for "ERROR" or higher (I'm sure you can modify, but this worked great for my needs) It doesn't work within IBM's

support of file.encoding system property

2002-03-25 Thread Oleg A . Paraschenko
Hello! I'm using jakarta-log4j-1.1.3 and I wish to write logs in unicode. I'm setting java system property 'file.encoding' to 'UTF8', but I get '" instead of UTF8 on output. Please revise my code, maybe I am doing something wrong. I looked at archives, but did not understand if 1.1.3

AW: configureAndWatch ?

2002-03-25 Thread Sauder Thomas - IWKA Informationssysteme GmbH
Have a look at PropertyConfigurator/DomConfigurator classes in log4j package. > -Ursprüngliche Nachricht- > Von: Janusz Dalecki [mailto:[EMAIL PROTECTED]] > Gesendet: Montag, 25. März 2002 05:53 > An: [EMAIL PROTECTED] > Betreff: configureAndWatch ? > > > I have found in the log4j doc t

Log4J and Catalina -- problem solved !

2002-03-25 Thread Mayuresh Kadu
hi all, please ignore my last post on using Log4J with Catalina a.k.a Tomcat 4.x. I managed to get it running with the auto-load Servlet method. However, is that compulsory or is there any other method of doing the same. I also have another question .. is their anyway i could have Log4J used as

Log4J and Catalina

2002-03-25 Thread Mayuresh Kadu
hello all, i have been trying to get Log4J to work with Catalina (Tomcat 4.x) for a period of more than 2 days now :( This is what i have done. As recommended in the Log4J manual, i have made a copy of Lo4j.jar in $JRE_HOME/lib/ext so that it can be added to CLASSPATH automatically. I have a log

RE: Missing Logger in v 1.1.3

2002-03-25 Thread Mayuresh Kadu \(Duality\)
Radka, I have already started using 1.1.3 in my app. However, i have not faced the problem. Could it be that the Logger class is not needed at all ? Mayuresh -Original Message- From: Radovana Straube [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 03:25 PM To: [EMAIL PROTECTED]

RE: Missing Logger in v 1.1.3

2002-03-25 Thread Klaus Mueller
> I wanted to you use the Log4J in my application. I have downloaded v. > 1.1.3 (jakarta-log4j-1.1.3.zip), but there is missing > org.apache.log4j.Logger file. In project history I have found > that you > replaced Category by Logger. I think, after this change you forgot to > update ZIP file

Missing Logger in v 1.1.3

2002-03-25 Thread Radovana Straube
Hi! I wanted to you use the Log4J in my application. I have downloaded v. 1.1.3 (jakarta-log4j-1.1.3.zip), but there is missing org.apache.log4j.Logger file. In project history I have found that you replaced Category by Logger. I think, after this change you forgot to update ZIP file in downl