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'
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
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
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
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,
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
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
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,
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
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
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
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
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
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
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
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
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 "
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
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
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.
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(...
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
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
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
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
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
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
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
28 matches
Mail list logo