logging from jsp

2002-02-20 Thread Joel Rees
My initial experiments with 1.1.3 gives me compiler errors when I tried to instantiate a category directly in jsp pages. For instance, <%@ page import="org.apache.log4j.Category" %> <% static Category slog = Category.getInstance( class.getName() ); %> ... gives me org.apache.jasper.JasperExcept

Re: JMX support in 1.2beta3

2002-02-20 Thread Ceki Gülcü
Charlie, The following is messy, but just to give you an idea of the flavor of the beast. 1) Put /java/jmx/lib/jmxri.jar /java/jmx/lib/jmxtools.jar /jakarta-log4j-1.2beta3/src/java /jakarta-log4j-1.2beta3/dist/classes into your classpath, changing directory names according to you

Re: Updating configuration files across multiple Java VM's

2002-02-20 Thread Ceki Gülcü
At 17:21 20.02.2002 -0800, Balaraman Sujatha wrote: >Hi, > >I have multiple VM's running log4j. So, if I do a >PropertyConfigurator.ConfigureandWatch on one VM, is there any way that >the log4j messages (i.e) the category messages on the other VM's will see >this new configuration file, or do

Updating configuration files across multiple Java VM's

2002-02-20 Thread Balaraman Sujatha
Hi, I have multiple VM's running log4j. So, if I do a PropertyConfigurator.ConfigureandWatch on one VM, is there any way that the log4j messages (i.e) the category messages on the other VM's will see this new configuration file, or do they need to be done on a per VM level ? Can you please c

JMX support in 1.2beta3

2002-02-20 Thread Charlie Cano
I have to say that the idea of JMX support for the logging service of Log4J is very exciting - is there any current documentation about what the general layout of MBeans are and how they should be used to configure/access the log4j system? I'm poking around the 1.2 API docs, but it's a little

Re: Multiple FileAppenders in one class

2002-02-20 Thread Tom Bednarz
> Sounds very similar to what i do. > I use different categories to direct my messages to another > fileappender...thus..different log file. > just instantiate the cateogires you need. and use them appropriately. > > Does that mean that I can do the following: public final class EWCInit ex

Re: Use of PropertyConfigurator

2002-02-20 Thread T Master
You misunderstood. If you change the filename dynamically at runtime, then activate it by calling appender.activateOptions(); if you use a config file, then you do NOT need to call appender.activateOptions() (until later if u change the filename at runtime). In the config file... you be spe

Re: Use of PropertyConfigurator

2002-02-20 Thread Marco Perrando
Where must I call it? Is this ironic? :) If I call it in my code I get those annoying messages two times!! :))) There should be a way to avoid the PropertyConfigurator to call activateOptions() for a particular Appender, so that it can be called inside the code. That should work. But is there an

Re: Use of PropertyConfigurator

2002-02-20 Thread T Master
Call : appender.activateOptions(); :) - Original Message - From: "Marco Perrando" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 20, 2002 8:44 AM Subject: Use of PropertyConfigurator I need to initialize my log4j system by PropertyConfigurator. I need a Rolling

Use of PropertyConfigurator

2002-02-20 Thread Marco Perrando
I need to initialize my log4j system by PropertyConfigurator. I need a RollingFileAppender, but I know the file name only at runtime (actually it's read from a ServletContext - InitParameter value). So I call PropertyConfigurator.configure and after I set the file manually with ((RollingFi

Re: Multiple FileAppenders in one class

2002-02-20 Thread T Master
Sounds very similar to what i do. I use different categories to direct my messages to another fileappender...thus..different log file. just instantiate the cateogires you need. and use them appropriately. - Original Message - From: "Tom Bednarz" <[EMAIL PROTECTED]> To: "log4j user list

Multiple FileAppenders in one class

2002-02-20 Thread Tom Bednarz
Hi, Is it possible to have more than one file appender in one class and log different things to it? I like to do the following: Generating normal program output in one file and creating a transaction protocol in a different file. The transaction protocol should be for transactions only and shoul

RE: Multiple configurations

2002-02-20 Thread Swami Iyer
It depends on what you are using, if you are using this from a servlet then you have to make sure that the log4j is not loaded by any other classloader other than the webapps context classloader and you have to put the log4j.jar in the webapps context lib directory. Thanks, Swami > -Original

Multiple configurations

2002-02-20 Thread Nair, Ranjini
Hi All, I am having problems getting multiple configurations to log to different log files based on the Category names. Does anyone have an example for this scenario? Thanks in advance, Ranjini. -- To unsubscribe, e-mail: For additional commands, e-mail:

Log4j doesn't read my properties

2002-02-20 Thread Steffen Euch
Hi! I'm a Log4j newbie and I'm trying to use an existing properties object to initialise Log4j 1.1.3, but it doesn't find its properties. My project has default properties and user specific properties. If I place the Log4j settings in the user specific file, everything works fine, but when I

Can't read properties

2002-02-20 Thread Steffen Euch
Hi! I'm a Log4j newbie and I'm trying to use an existing properties object to initialise Log4j 1.1.3, but it doesn't find its properties. My project has default properties and user specific properties. If I place the Log4j settings in the user specific file, everything works fine, but when I

Enhancment to %c conversionpattern ?

2002-02-20 Thread Max Rydahl Andersen
Hello log4j-user, I know that with a category name "a.b.c" the pattern %c{2} will output "b.c". (e.g. output the last 2 levels of the categories) This is all great but is there a way to state that i want everything below a certain category level ? e.g. I got many categories and they all start w

RE: log4j.dtd:configuration

2002-02-20 Thread Jeff Singer
Hi All I've tried a number of different solutions. New xml parsers. But I can still not get rid of this error. I would really appreciate it if somebody could give me a helping hand. Thanks in advance Jeff Singer > -Original Message- > From: Jeff Singer [mailto:[EMAIL PROTECTED]] > Sent

RE: issue with xml configuration

2002-02-20 Thread Ceki Gulcu
I'll switch of to French on the next line only to switch back to English in the next paragraph. Marie et Charles, vous avez toute libert de converser dans la langue de votre choix. Cependant notez que le 90% des autres participants sur cette liste ne comprennent pas la langue de Molire, sans le v

Laura M. Ly/MIS/TETCO/PEC is out of the office.

2002-02-20 Thread Laura M. Ly
I will be out of the office starting 02/20/2002 and will not return until 02/27/2002. -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: issue with xml configuration

2002-02-20 Thread PAULET Charles (DEVOTEAM)
Hi Marie, Yes I am. Effectivement Tomcat utilise son propre environnement. Il utilise ses propres CLASSPATH pour chaque application. En fait le chemin webApp/WEB-INF/lib y est par defaut. J'utilise TOmcat sous Win et je ne connais pas sous Uni. Sous Windows, les fichiers 'bat' du repertoire bi