My bet is that it's a classpath problem. The logging system at home has
access to the class information whereas the logging system at work
doesn't.
I'm not even sure how this could be possible, but I still bet that's the
problem.
alan
-Original Message-
From: Allistair Crossley [mailt
I customized the class to do exactly that. I put each day's logs in
it's own directory and when the day rolledover, I called a
deleteOldDirectories() method that deleted the directories I no longer
needed.
My implementation method was to create a date string for each of the
past N days that was
I'm using DailyRollingFileAppender because I want to physically separate
the log messages for each day. I'd also like to do something similar to
the MaxBackupIndex in RollingFileAppender so that I only keep the last 7
days of log files.
Any suggestions on how to limit the number of log files that
I don't use the xml configuration file so there may be more errors than
the ones I mention. However, with that caveat...
You haven't spelt additivity correctly for one...
""
Also, you appear to have all of the appenders be ConsoleAppenders so it
would seem natural that they'd all be writing to
In the forhcoming Log4J 1.3 there is a method to get the key set of the MDC.
That may be changing to merely getting the key set for the 'properties' of
the logging event. The 'properties' are an inherited set of global
information from the LoggerRepository, the current MDC, and the current
LoggingE
In an Appender in the append(LoggingEvent event) method how do I get all of
the MDC values?
LoggingEvent has a getMDCCopy but it returns void (a "get" method that
returns void?).
MDC.getContext is marked for internal usage.
James Stauffer
I had hoped to use 1.3 for our new Database logging but it looks like I will
have to go back to 1.2.8. because I should have it finished this week. One
benefit of writing our own Database appender is that it could use our
(custom) connection pool.
James Stauffer
-Original Message-
From:
Yeah you are right. Thank you very much. Wonder, how I missed that.
Thanks
Paul Smith <[EMAIL PROTECTED]> wrote:
There is no need to change any code, the current version of SMTPAppender
available in log4j1.2.x already accepts multiple email addresses. Here is
an example snippet from my app's confi
At 03:49 PM 5/12/2004, you wrote:
Is Joran bleeding edge?
On Monday, 12th of May 2004, the answer is yes. However, JoranConfigurator
has a much cleaner and flexible design than DOMConfigurator. There is no
doubt that in log4j 1.3 JoranConfigurator will completely replace
DOMConfigurator. The rep
Is Joran bleeding edge?
James Stauffer
-Original Message-
From: Ceki Gülcü [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 2:25 AM
To: Log4J Users List
Subject: RE: DBAppender cannot function without a connection source
James,
Right. You need JoranConfigurator (log4j 1.3) to
Hi,
>I've got a DailyRolloingFileAppender and I want to keep only the last 7
>days. Is this possible?
>
>If not, has anyone built a custom appender for that?
No to the first question in log4j 1.2, yes in log4j 1.3. Yes to the
second question, you can search the list archives for
ExtendedDailyRo
I've got a question which I guess have been asked before but I haven't
found it.
I've got a DailyRolloingFileAppender and I want to keep only the last 7
days. Is this possible?
If not, has anyone built a custom appender for that?
-
Hi all log4j users !
I have a web application that uses several packages:
webapp.beans
webapp.servlets
webapp.customtags
Now I'd like to use a different appender for every package.
My log4j.xml file is basically like this:
..
..
..
Hi All,
Our development effort has been a little hindered by Log4J's output not revealing line
numbers for errors. I am sure there is a perfectly good reason for this although I
have found a caveat.
A sample from our log4j.properties file is as follows to define a logger called
Application. Th
Paul, I've looked into our Wiki recently and its a big mess. Until
recently, I could not event log on to administer our wiki. With the
help of infra@ that is solved now. Now, I can even create wiki
administrator accounts. I'll go on to create admin accounts for the
test of the Logging Services PMC
James,
Right. You need JoranConfigurator (log4j 1.3) to handle the
configuration of appender specific sub-components. DOMConfigurator in
1.2.x does not know how to handle "unknown" sub-components.
DBAppender is bleeding edge...
At 08:27 PM 5/11/2004, James Stauffer wrote:
I found the UrlConnectio
16 matches
Mail list logo