Antw: Re: PaternLayout: allign to the left don't work asexpected

2001-04-04 Thread Frank-Olaf Lohmann DC
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

Re: reloading configuration at runtime

2001-04-04 Thread Erik van Zijst
-- 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

log4j and light client

2001-04-04 Thread alexis . vernet
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

Re: log4j and light client

2001-04-04 Thread Anders Kristensen
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

Betr.: Re: where is the backup file

2001-04-04 Thread Simin Zolfaghari
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

custom priorities

2001-04-04 Thread Geert Mergan
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

Re: filtering on extra attributes

2001-04-04 Thread Alan Robertson
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

Re: Multiple appender with multiple log level.... please help...

2001-04-04 Thread Massimo Di Marco
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

Re: reloading configuration at runtime

2001-04-04 Thread Robert Burrell Donkin
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

RE: Multiple appender with multiple log level.... please help...

2001-04-04 Thread Johnson, Clay
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

How do I set up log4j to log errors to the NT Event Logger

2001-04-04 Thread Gary Graham
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]

RE: EJB problem

2001-04-04 Thread Johnson, Clay
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,

Re: Logging into Files

2001-04-04 Thread Sachin Wadhwa
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

RE: Logging into Files

2001-04-04 Thread Pradipta Chatterjee
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

Memory footprint question re large-scale J2EE deployment

2001-04-04 Thread L. Scott Emmons
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

Re: Memory footprint question re large-scale J2EE deployment

2001-04-04 Thread Scott M Stark
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,

Re: Memory footprint question re large-scale J2EE deployment

2001-04-04 Thread L. Scott Emmons
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

RE: Memory footprint question re large-scale J2EE deployment

2001-04-04 Thread Johnson, Clay
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

RE: Memory footprint question re large-scale J2EE deployment

2001-04-04 Thread Michael Brennan
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

Betr.: Re: where is the backup file

2001-04-04 Thread SCOTT FARQUHAR
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

Antw: Re: PaternLayout: allign to the left don't workasexpected

2001-04-04 Thread SCOTT FARQUHAR
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