Logger Instance

2002-05-28 Thread Sridharan Vembu
Hi All, I'm subclassing the Logger class using the LoggerFactory class. And I've overridden the getLogger() call, so that it would take one more String argument which I'm storing it in the myLogger as a static datameber. This datamember I'm supplying the value when I start the application. I'

console/file config

2002-05-28 Thread G.L. Grobe
As I understand it, the following should create files in my /tmp dir (though it doesn't), but I do get this log4j output to my console. Could someone verify for me that I have this correct. log4j.category.com.neuroquest.cais.web.velocity.RunningChart=DEBUG, chart log4j.appender.chart=org.apache

RE: How is Log4J licensed?

2002-05-28 Thread Mark Womack
If you download the v1.2.3 package, there is a LICENSE.txt at the top level of the directory. Log4j is licensed under the Apache 1.1 license, just like all the Apache projects. -Mark > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 28, 2002

How is Log4J licensed?

2002-05-28 Thread Adrian_Cho
Hi I've joined this list for one reason only and that is to ask the question as to how Log4J is licensed. I would assume it is under the Apache license but I can't find the license in any of the downloads nor listed on any of the Log4J web pages (nor any of the Jakarta web pages). Thanks Ad

RE: Log4j-1.2.3 - incorrect build ?

2002-05-28 Thread Xu, William
Thanks Ceki. The error was from command line compiling. I found out one of our internal framework jars had log4j-1.1.3 included which I overlooked. So now the problem is solved. Regards, William Xu -Original Message- From: Ceki Gülcü [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28,

Re: DailyRollingFileAppender

2002-05-28 Thread Ceki Gülcü
Anand, Do you realize how many people read the log4j-user mailing list? Log4j-user mailing list is a useful resources open to all. Please do not abuse it. At 14:50 28.05.2002 -0700, Anand M S wrote: > Hi, >Here, I'd like to describe my logging case, I have seperate mechanism for >logging, j

Re: Cross-Platform Syslogging and line feeds

2002-05-28 Thread Ceki Gülcü
At 16:09 28.05.2002 -0500, Steve Cohen wrote: >I have started to do some logging using a SyslogAppender. The application >that is making the log calls is running on Windows NT, although it will >not always be so. The Syslog is running on a Solaris box. I find that >when I view the syslog out

DailyRollingFileAppender

2002-05-28 Thread Anand M S
Hi, Here, I'd like to describe my logging case, I have seperate mechanism for logging, just I need to rollover this log file weekly basis. If we we write to log file with some other mechanism(not log4j) and can we rollover with log4j? please help me, it's urgent. if my log file is mylog.log,

Re: Log4j-1.2.3 - incorrect build?

2002-05-28 Thread Ceki Gülcü
Hmm, are you using JBuilder? If you are, then clean up classes from earlier builds and start over. It appears that you suffer from a compile time inconsistency and I assure you that log4j builds without compile time errors. At 13:03 28.05.2002 -0500, Xu, William wrote: >All, > >One of my classe

RE: SNMPTrapAppender

2002-05-28 Thread Mark Masterson
Hi David, First off, please forgive me for copying my answer to you to the list, but this is a very interesting question, and I can imagine the answer might be helpful for other folks. Above and beyond that, maybe somebody else is already using the appender with Tivoli and might be able to

RE: SNMP appender

2002-05-28 Thread Mark Masterson
Hi yourself! >>Do you have any examples of using you classes?<< First off, forgive me for copying my reply to the Log4J users list, but I get this question rather often, and I think it might help other folks to see the answer. On to yor question -- you mean, Java code using Log4J where t

Cross-Platform Syslogging and line feeds

2002-05-28 Thread Steve Cohen
I have started to do some logging using a SyslogAppender. The application that is making the log calls is running on Windows NT, although it will not always be so. The Syslog is running on a Solaris box. I find that when I view the syslog output, it contains ^M at the end of every line. My

NullPointerException while adding appender

2002-05-28 Thread Anand M S
Hi, In my earlier mail, I did not give enough information. Actually I have my own logging mechanism, just I need to rollover that log file depending on certain criteria, for that I'm using DailyRollingFileAppender, MyLogger errLogger = new MyLogger(errFilePath); //errorFilePath=/abc/error

RE: Log4j-1.2.3 - incorrect build?

2002-05-28 Thread Xu, William
Sorry, here is the message I received (the one I sent earlier was generated when i was doing something to work around the issue) MetricsLoggerFilter.java:25: com.spcs.premiere.common.framework.log.MetricsLogge rFilter should be declared abstract; it does not define getOptionStrings() in or g.apac

Log4j-1.2.3 - incorrect build?

2002-05-28 Thread Xu, William
All, One of my classes extends Filter. When I compile it, I received the following error message: MetricsLoggerFilter.java:25: com.spcs.premiere.common.framework.log.MetricsLogge rFilter should be declared abstract; it does not define setOption(java.lang.Stri ng,java.lang.String) in org.apache.l

NullPointerException, Urgent please

2002-05-28 Thread Anand M S
Hi, I'm new to log 4j, I'm using DailyRollingFileAppender for file rollover, but while adding file a[[ender to logger it's giving nullpointer exception, I do not any clue about exception, here is the code snippet, please help me. errLogger = new MyLogger(errFilePath); errLogger.ad

RE: Stopping logger

2002-05-28 Thread Mark Womack
Jeroen, If you look at the log4j Filter class, there is an "OFF" level. If you set your logger level to this value, I'm sure it will fully disable all messages. You should still use the isEnabledXYZ() methods to determine if a message should be logged or not. Sorry, I had forgotten about the "

RE: ObjectRender

2002-05-28 Thread Matt Cox
That's excatly what's happening. I have the log4j.jar in the system classpath, and due to the parent/child hierarchy nature of class loaders it's unable to look down the classloader hierarchy for my custom object renders located in the web-inf/classes (weblogics child classloader for my .war file

RE: ObjectRender

2002-05-28 Thread Thomas Tuft Muller
Don't know anything about weblogic, but your problem might be related to that different webapps utilize different ClassLoaders. I know this is the case for Tomcat, and this allows (very conveniantly) Log4j to be configured individually for each webapp. This problem, however, does not apply to my

RE: ObjectRender

2002-05-28 Thread Matt Cox
One thing that caused me a slight problem when setting up my object renderers was that I was initializing log4j in a servlet running under weblogic. I needed to added my custom renderers and any imported classes within to my system classpath when starting weblogic in order for them to be located.

RE: ObjectRender

2002-05-28 Thread Thomas Tuft Muller
I'm experiencing some strange problemts with configuring renderers in the xml config file: sometimes it works, sometimes it's not. Not sure why. For a specific project, I _have_ to add the renderers programmatically with ( ( Hierarchy ) LogManager.getLoggerRepository() ).addRenderer(...

RE: ObjectRender

2002-05-28 Thread Matt Cox
I've figured this one out but looking through the message archive. I've added the following lines to the log4j-config.xml: Adding the above seemed to solve my problems. -Original Message- From: Ceki Gülcü [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 5:49 PM To: Log4J Users

log4j.dtd in log4j 1.2

2002-05-28 Thread Giuseppe Madonna
Hi all, not sure this is the right place to post this problem (log4j-dev better?). I've searched the mail archive but found nothing similar, so here it is! Due the introduction of Logger and Level concepts, I changed my xml configuration file to match new classes. So tags became tag and are no

Re: Missing appenders with config file

2002-05-28 Thread Ceki Gülcü
At 13:34 28.05.2002 +0200, Henriksen Niels Kristoffer wrote: >Does it matter if configuration is made AFTER getLogger calls? (Of course, >config must be done before actual logging). No, it does not matter. You can configure after getLogger calls. To avoid the dreaded "log4j:WARN No appenders cou

Missing appenders with config file

2002-05-28 Thread Henriksen Niels Kristoffer
Hi all! I have this scenario: I have wrapped the Logger class into a class of my own (because I will need to do some formatting of messages to be logged): public class SBLogger { private Logger logger; public SBLogger(String name) { logger = Logger.getLo

Re: program version in Log4j

2002-05-28 Thread Ceki Gülcü
I see. The MDC is what you are looking for. At 09:52 28.05.2002 +0100, Chris Naude wrote: > Ceki >This is not quite what I meant. I am not really referring to an >application version, but rather a string tag that can be set (typically >with a different value) at a program level. I find this

Re: program version in Log4j

2002-05-28 Thread Chris Naude
Ceki This is not quite what I meant. I am not really referring to an application version, but rather a string tag that can be set (typically with a different value) at a program level. I find this useful in order to establish that I am running the correct program, and not an older version. So

AW: Configuration problem

2002-05-28 Thread Holger Brands
Hi, Now I know what the problem is: An "old" Log4J version 1.1.3 was lying around in the classpath and was used instead of Log4J 1.2.x. With the 1.2 version everything works OK. The relevant difference between these versions, which caused this strange behaviour, can be found in method PropertyS