Scott,
This depends on needs. Nevertheless this I expected from no minus in the format string
- right?
Regards
Frank-Olaf Lohmann
"SCOTT FARQUHAR" [EMAIL PROTECTED] 03.04.2001 22.37 Uhr
"truncated from the beginning"
ie
"beginning is truncated"
so if you start truncating from the
-- Long story, but please read (fundamental architecture extension). --
I've been doing a little thinking myself on the run-time-reload feature.
If we want to solve it nice clean, I think it's wrong to have
configureAndWatch() in DOMConfigurator.
If you want to have this kind of functionality
I would like to use log4j API's in an applet viewer from a web browser.
Is-it possible to import a light version of log4j to minimize network
traffic?
A jar file, which contains all classes of org.apache.log4j package, has a size of 35ko.
Thank you for your help,
Alexis
The log4j ant build script currently builds two jar files - one
containing everything and one which containing only the most common
components. This last one is currently about 85 Kb but there's plenty of
scope for trimming it to fit a particular environment. You'll have to go
through and see
I have set the MaxBackupIndex of one , (two and tree ..) in the Config-file
log4j.appender.A1.MaxBackupIndex=1
I call the rollOver() in my applikation-code
cat = Category.getInstance("CAT");
PropertyConfigurator.configure( c:/itp/logmpl/log-test.properties"));
RollingFileAppender a
I can't get custom priorities to work (see below + attachments)...
Well they do work but not in the way they're supposed to.
Oh yes, I also tried using the DOMConfigurator, doesn't work
either. I figure there must be something wrong with my own
extensions of the log4j framework.
Can anybody
Well, this was pleasantly simple, no need for anyone to reply to this now.
If you are having problems with this same thing, just try modifying
org.apache.log4j.varia.PriorityMatchFilter. And instead of matching on
priority just match on an attribute in your own version of LoggingEvent.
Now on to
What is the appender threshold option?
Thanks...
- Original Message -
From:
Johnson, Clay
To: 'LOG4J Users Mailing List'
Sent: Wednesday, April 04, 2001 11:32
AM
Subject: RE: Multiple appender with
multiple log level please help...
You need to
specify
Erik van Zijst wrote:
Ceki (and other guru's ;),
i wouldn't describe myself as that
but i'll tell you what my opinions anyway... you never know your luck, some guru
might correct me ;-)
First is the reconfiguration thing as described below in the earlier mail.
i have a class that loads a
I use
DOMConfigurator, and I forget the syntax for PropertyConfigurator options, but
it's probably something like:
log4j.appender.GENERATE1_Appender.Threshold =
DEBUG
Appender's have
options that can be assigned values. Threshold is inherited from
AppenderSkeleton. It specifies the
Hello all,
I am very new to log4j and was wondering if someone could tell me what
settings in the log4l.properties file I need to make and any code changes I
may need to make - to get the logged messages to go to the NT Event Viewer?
Thanks,
Gary Graham
[EMAIL PROTECTED]
What category names are associated with A and SB?
Appender additivity (inheritance) follows the category hierarchy, not the
runtime callstack. Typically, people use the locality convention, naming
categories for the fully qualified name of the class. In that event, if SB
was a decendent of A,
Hi Pradipta,
Instead of calling BasicConfigurator(), call BasiConfigurator with Appender as
an argument.
Here is the sample code
=
java.io.OutputStream os = null;
try{
os = new FileOutputStream("C:\\Test.log.txt",true); //mind you double slash
Thanx buddy...it sure worked !!!
Prodi
-Original Message-
From: Sachin Wadhwa [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 04, 2001 4:31 PM
To: LOG4J Users Mailing List
Subject: Re: Logging into Files
Hi Pradipta,
Instead of calling BasicConfigurator(), call BasiConfigurator with
Was curious if anyone has measured the memory footprint of log4j. Some
of our architecture folks are worried that having 100's of classes (EJB,
Servlet, etc) instantiating log4j objects will be a problem. We plan on
using the JMSAppender, if that makes any significant difference.
I'm curious how
You don't have to follow the pattern of having a Category instance per
class. I use one Category per package and sometimes one Category
for a logical grouping of packages.
- Original Message -
From: "L. Scott Emmons" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 04,
Scott M Stark wrote:
You don't have to follow the pattern of having a Category instance per
class. I use one Category per package and sometimes one Category
for a logical grouping of packages.
I'm sorry, by Category I mean "org.apache.log4j.Category" objects, not
to be confused with the
Is this really an issue? I thought category instances were simply
references (pointers) to the hierarchy hash table entry. And if you use
static categories, for that matter, you have only one per class.
Static members also minimize hash lookup.
-Original Message-
From: Scott M
Yes, they are just references to hash table entries. Once a Category object
for a particular logging category is instantiated, Category.getInstance will
always return a reference to the already instantiated instance.
The static member approach is a good pattern, IMO. That's what I do. I also
If you set MaxBackupIndex=1 , then you will only get one backup file.
If you want more, set MaxBackupIndex=10, and you will end up with 10 files:
log.1
log.2
...
log.10
[EMAIL PROTECTED] 04/04/01 08:52pm
I have set the MaxBackupIndex of one , (two and tree ..) in the Config-file
the "-20" says to right pad with spaces if less than 20 characters
the".30" says to truncate from the left.
From the documentation there seems to be no way to truncat from the right. This
would be an easy change in the code if you wished to do it.
And I retract my statement about it being
21 matches
Mail list logo