Hello,
I am trying to learn more on how the logger works internally. If I create a new
logger (Logger logger = Logger.getLogger(myLogger);) does it create a
circular buffer that holds x amount of log messages (or maybe a maximum size in
kb)? If so, what is the size of this buffer and can it be
Hi,
As I understand, there are two ways to instantiate category:
1.Create an instance in every class.(Does this not affect the performance in
large J2EE applications?)
2.Create a static class for Category and then use it.(This might give
problems in EJB and multithreaded environments).
Now,
troubleshooting page (or
to the solution)
Thanks
Charles
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
. YOu just need to set up the appenders to filter logging
for only their package and you will have done what you need. Just make sure
that the category uses the package naming heirarchy as suggested in the
docs.
Regards,
Charles
-Original Message-
From: Christopher Randall [mailto:[EMAIL
to make the interface public and all internal data and
methods private which makes extensibility very poor.
/rant
Charles
-Original Message-
From: Kevin Steppe [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 04, 2002 12:21 PM
To: [EMAIL PROTECTED]
Subject: Re: Log4J encapsulation is poor
I'm sure this is nitpicking but shouldn't the file protocol have two /'s
instead of one ?
ie
file://d:/fonem/dev/bin/log4j.properties
rather than
file:/d:/fonem/dev/bin/log4j.properties
-Original Message-
From: Steven Robertson [mailto:[EMAIL PROTECTED]]
Sent: February 3, 2002 6:49
make it myself)? All you
really need to do is a File.createDirs() in FileAppender.setFile(...).
Charles Hudak
Software Engineering Manager
Arrowhead General Insurance/YouZoom, Inc.
[EMAIL PROTECTED]
858.320.6800x6344
There are obviously many ways to do this.
The way I do it is I created a LogInitializer servlet that is loaded on
startup and uses a single configuration file. Since I'm really only
concerned about the logging from MY code and not any of the open
source/other components that I have installed,
log4j is fail stop. Logging doesn't and shouldn't throw an exception to your
application and cause it to crash.
-Original Message-
From: Raveendranath, Rohith (LNG - AUS)
[mailto:[EMAIL PROTECTED]
Sent: Thursday, August 28, 2003 17:12
To: 'Log4J Users List'
Subject: Behaviour in Log4j
-Original Message-
From: Charles Hudak [mailto:[EMAIL PROTECTED]
Sent: Friday, 29 August 2003 10:23 AM
To: 'Log4J Users List'
Subject: RE: Behaviour in Log4j when Logfile is deleted.
log4j is fail stop. Logging doesn't and shouldn't throw an exception to your
application and cause
Actually, if you look at the code, the connection is closed in the finalize
method, not after every call to the execute method so the connection will
only be closed when the object is GC'd. The code is actually fairly fragile
in that if the connection times out (and is summarilly closed), the
Support Ceki and buy the manual.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 13:37
To: [EMAIL PROTECTED]
Subject: filter some class to one file, different class to another file
Hello,
I'm new to configuring my log4j.xml file,
Most of the examples show the 'programmatic' use of Log4j. In most real
applications, the logging is integrated into the code and the controlled
externally via the configuration.
In any event, this is how I typically use loggers in my classes:
package com.mystuff;
public class MyClass
{
Doubtful since J++ is stuck at something like JDK 1.1.7 which didn't include
the Collections libraries, among other things, that JDK 1.2 added.
-Original Message-
From: Chang, Betty [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 15:39
To: [EMAIL PROTECTED]
Subject: Can log4j
I created one of these for our application.
It also handles clustered servers so if you have multiple servers using the
same config, it will do a reload on all of them by hitting the main url
(useful if you are behind a firewall or using a big ip box, like we are).
You can also have specific
Looks the attachment got filtered out. If anyone is interested, they can
email me for the source. Sorry, but I don't have access to the cvs
repository behind our firewall to upload it.
-Original Message-
From: Charles Hudak [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 15:57
gotten grip on the
automatic feature of log4j, I started liking it. But it seems servlets
is the way to go at this time.
However my servlet isn't such a fancy one like yours, so I would be
interested in the source!
Tom
Charles Hudak wrote:
Looks the attachment got filtered out. If anyone
Hi,
It seems you have a problem with the definition of the path to your configuration
files.
Because this error is typical of this.
try to add the /WEB-INF/classes path to your classpath.
Regards,
Charles
-Message d'origine-
De: Thanh Duong
Date
: Marie Jung
Charles,
It looks like you are french, no?
Merci, mais je ne comprends pas votre réponse. Je travaille sur solaris 8,
d'après ce que j'ai compris sur le classloader de Tomcat, la variable
d'environnement UNIX CLASSPATH est complètement ignorée
-Message d'origine-
De: Adam Krieg
Date: mardi 26 février 2002 16:41
À: 'Log4J Users List'
Objet: RE: appenders in different levels? [newbie]
Markus,
I have a logging system where only fatal errors are sent
20 matches
Mail list logo