Hi,
Can someone please help me.
I am using RollingFileAppender to log messages to log file.
But I don't want to specify the name of the file to log to. Instead I
want the appender to pick up the name from the Logger class name.
For eg. if Logger.class.getName() returns abc.xyz.apple
So i want Appe
Configuration of the existing classes would probably not be possible,
however subclassing RollingFileAppender to create your own appender
should work. If you reimplement the rollOver method, then when the file
reaches 10 MB your class will be called and you could perform the
renaming/compression/co
All,
We use log4j and our logs volume is generally 200MB of data in a single
day, and Presently we use 'RollingFileAppender', as everybody knows
after the max files is reached - the old logs are gone
Present configuration we have is:
log4j.appender.R=org.apache.log4j.RollingFileAp
It seems I can solve my custom pattern + html layout dilemma with a
custom layout. I extended the log4j HTMLLayout class and overrode the
format and getHeader methods. In the getHeader method, I return
everything as in the log4j HTMLLayout class header, except I return the
different column headi
I've very successfully used log4j-1.2.12 as a plugin within Eclipse RCP
applications.
Now I've written a simple new FileAppender that has the time and date in
it's file name.
I've compiled that into a jar which I've made into an separate Eclipse
plugin.
However when I run an Eclipse RCP wh
Ah. Thanks for the explanation. I understand the problem better now.
Hey, bottom line... I am tickled to have a logging framework do as much
as log4j does.
-S
On Nov 17, 2005, at 1:29 PM, Steve Pruitt wrote:
> I think having the same max backup index setting for daily rolling
> files would b
As a workaround/kludge you can run some daily script to remove log files you
no longer want. For example, on my unix box I use the following to remove
log files older than 60 days:
find /var/tmp -name 'waitlistd.log_*' -mtime +60 -exec rm -f {} \;
I also use the following to bzip2 compress p
On Nov 17, 2005, at 1:29 PM, Steve Pruitt wrote:
I think having the same max backup index setting for daily rolling
files
would be useful. I would still like to limit the sheer number of log
files. I guess I can put it in the suggestion box.
Unfortunately, it is not a simple problem. If
See bug http://issues.apache.org/bugzilla/show_bug.cgi?id=9150.
FileAppenders in 1.2.12 and the current SVN HEAD both attempt to
create directories if the parent directory does not exist.
If you'd like to report a bug, please be more specific about what is
occurring and the circumstances.
On Nov 17, 2005, at 10:35 AM, Ju Ar wrote:
Threre seems to be a problem when using Logger.trace("") on some
pattern conversion characters in opposite to Logger.log
(Level.TRACE, "") which works correctly.
See http://issues.apache.org/bugzilla/show_bug.cgi?id=36800. The
problem should b
I think having the same max backup index setting for daily rolling files
would be useful. I would still like to limit the sheer number of log
files. I guess I can put it in the suggestion box.
-S
-
To unsubscribe, e-mail: [EMA
> --- Ursprüngliche Nachricht ---
> Von: "Omer Saritemur" <[EMAIL PROTECTED]>
> An: "'Log4J Users List'"
> Betreff: Turkish localization problem
> Datum: Thu, 17 Nov 2005 18:25:52 +0200
>
> Hi, We have a program using log4j for logging but program does not
> work and shows an error message "Cann
Threre seems to be a problem when using Logger.trace("") on some pattern
conversion characters in opposite to Logger.log(Level.TRACE, "") which works
correctly.
Those caracters seem to be all location collecting parameters like C, M, L.(I
know that they are using a lot of CPU time ... )
Hi, We have a program using log4j for logging but program does not
work and shows an error message "Cannot initialize log file" when we
set (Control Panel>Regional Options>Set Default) "System Locale"
from English(United States) to Turkish on a MS Windows 2000 Server.
We try other languages suc
I have never seen a case where a log4j appender creates a directory.
Under what circumstances does it create directories?
On 11/17/05, Vin Karthik <[EMAIL PROTECTED]> wrote:
> There are cases when the appender creates directories and drops the log files
> if the directories dont exist..It is hap
Hmm. I tried your appender, but all I got was the message. The date,
log name, and level wasn't written out. Not sure whats up with that.
To bad there is no way to reformat the html layout, its very useful for
all the obvious reasons. This seems like an unfortunate shortcoming to
me.
-S
There are cases when the appender creates directories and drops the log files
if the directories dont exist..It is happening with log4j1.2.12..can you please
help me?
James Stauffer <[EMAIL PROTECTED]> wrote: The appenders don't create
directories. Some people have made
appenders that create t
Hi,
This subject has been upp before, but I can not get it to work in our
app. We need/want to make sure that runtime exceptions such as
NullPointerException etc. should be logged together in our log file that
is managed by log4j. I have found some old emails on this mailing list
where the suggest
18 matches
Mail list logo