Re: activateOptions() in RollingFileAppender

2006-02-07 Thread Curt Arnold
On Feb 7, 2006, at 10:48 PM, Rahul wrote: Hi Curt, You said when configuration file (log4j.xml in my case) is used for configuring log4j, the configuration file reader will call the activateOptions(). But what needs to be written in configuration file which will tell the configuration fi

Re: activateOptions() in RollingFileAppender

2006-02-07 Thread Rahul
Hi Curt, You said when configuration file (log4j.xml in my case) is used for configuring log4j, the configuration file reader will call the activateOptions(). But what needs to be written in configuration file which will tell the configuration file reader to call activateOptions() ? I did tha

Re: JoranConfigurator configuration of log4j

2006-02-07 Thread dirk ooms
applying resetConfiguration to the LoggerRepository before reconfiguring will resolve this. dirk On Tuesday 07 February 2006 22:02, DeSantis, MJ Mark @ IS (7179) wrote: > This is more of a "just out of curiousity" type question. > > When I configure log4j in the code (using the JoranConfigurator

JoranConfigurator configuration of log4j

2006-02-07 Thread DeSantis, MJ Mark @ IS (7179)
This is more of a "just out of curiousity" type question. When I configure log4j in the code (using the JoranConfigurator) with an xml file. I get what you would expect - all my appenders and such defined in the xml file are instanciated. If I decide to reconfigure log4j using the same xml config

RE: Using Layouts with JMSAppender

2006-02-07 Thread CONNER, BRENDAN \(SBCSI\)
One other question: I noticed that LoggingEvent does not have a timestamp that indicates when the event was logged. I can get a timestamp from the JMS message itself. However, I was hoping that, if I used both a FileAppender and JMSAppender, I would have access to a single timestamp value that al

Re: activateOptions() in RollingFileAppender

2006-02-07 Thread Curt Arnold
On Feb 7, 2006, at 8:21 AM, Bender Heri wrote: No. You should call it in code after having assigned new values to appender properties. Heri When configuring log4j using a configuration file, you are not responsible for calling activateOptions(), the configuration file reader will call

RE: How to use relative filename in log4j.properties?

2006-02-07 Thread Jacob Kjome
Quoting Zsolt <[EMAIL PROTECTED]>: > If that worked I would use it: > >${catalina.home}/logs/some.log > Have you set CATALINA_HOME as an OS environment variable? That's what Tomcat's .bat and .sh batch startup files, and service.bat Windows service installer use to set the value for catalina.hom

RE: How to use relative filename in log4j.properties?

2006-02-07 Thread Zsolt
If that worked I would use it: >${catalina.home}/logs/some.log Zsolt > >On 2/7/06, Zsolt <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I use logging-log4j-1.2.13 from tomcat-5.5.15. How can I use relative >> filenames to get the log files under tomcat/logs? >> >> Zsolt >> >> >> >> -

Re: where do you put the log4j.properties in J2EE?

2006-02-07 Thread Jacob Kjome
James is right, as usual. Log4j config files are always looked up in the default package and will be looked up according to the classloader behavior you are using. For instance, here's how I set up my Tomcat server... common/classes/log4j.xml common/lib/log4j.jar I use the above for the server

Re: Tomcat -- All Logs to Syslog

2006-02-07 Thread Jacob Kjome
I use WinXP, and I've never seen any message about the "Tomcat Native library", so you'll have to ping the tomcat-user list for info on that. I'm not sure about the SysLogAppender either. I've never used it. Doesn't it require a native (C++) library to be installed? Try something slightly less

Re: How to use relative filename in log4j.properties?

2006-02-07 Thread Jacob Kjome
I second James' suggestion. However, if you really want to use relative paths, then you need to know what directory the VM is starting from. This depends on how you are starting Tomcat. I'll assume you are using plain vanilla Tomcat, not Tomcat bundled with JBoss or some other such package. If

RE: Using Layouts with JMSAppender

2006-02-07 Thread CONNER, BRENDAN \(SBCSI\)
OK, thanks for your help. I was under the apparent misconception that the layout formatted message would be placed in the renderedMessage field of LoggingEvent before serializing it. But, through experimentation, it appears that renderedMessage contains the same information as the message field.

Re: where do you put the log4j.properties in J2EE?

2006-02-07 Thread James Stauffer
For automatic configuration it should be in the classpath. Put it in the shared classpath (i.e. tomcat/common/classes) if you want to configure every app. Put it in your app classpath (i.e. WEB-INF/classes) if you want to configure only your app. Where you put it affects where your log4j.jar sho

Re: How to use relative filename in log4j.properties?

2006-02-07 Thread James Stauffer
Use something like: ${catalina.home}/logs/some.log On 2/7/06, Zsolt <[EMAIL PROTECTED]> wrote: > Hi, > > I use logging-log4j-1.2.13 from tomcat-5.5.15. How can I use relative > filenames to get the log files under tomcat/logs? > > Zsolt > > > > -

RE: activateOptions() in RollingFileAppender

2006-02-07 Thread Bender Heri
In your first request you said you "want to change the log file of my application at runtime". The activateOptions() should be called there. If you dont really change this in your code, then I dont understand your question. You have to explain more. (but I have no idea of struts). Heri > -Or

Re: activateOptions() in RollingFileAppender

2006-02-07 Thread Rahul
I am using log4j in my struts application. And only code I have written in my classes is Logger logger=Logger.getLogger(ClassName.class); which creates a logger instance then logger.info("some log"); Where should I call activateOptions() and how to invoke that piece of code? Bender Heri wrote:

RE: activateOptions() in RollingFileAppender

2006-02-07 Thread Bender Heri
No. You should call it in code after having assigned new values to appender properties. Heri > -Original Message- > From: Rahul [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 07, 2006 3:20 PM > To: log4j-user@logging.apache.org > Subject: activateOptions() in RollingFileAppender > >

activateOptions() in RollingFileAppender

2006-02-07 Thread Rahul
Hi all, I want to change the log file of my application at runtime, for which I need to call activateOptions() on RollingFileAppender. This is how my log4j.xml looks like: http://jakarta.apache.org/log4j/";> * * Is this the correc

Re: Tomcat -- All Logs to Syslog

2006-02-07 Thread Mark F
Jacob Kjome wrote: "commons-logging-api.jar" should be in CATALINA_HOME/bin. "commons-logging.jar" and log4j.jar should be in CATALINA_HOME/common/lib. Do *not* put "commons-logging.jar" in the "bin" directory, only "commons-logging-api.jar". Do you still have the CNFE problem? If you still d

Re: where do you put the log4j.properties in J2EE?

2006-02-07 Thread Norbert Toth-Gati
Hi Kameron, In case you are using an application server with your system, I would suggest you place your log4j configuration file in the app. servers configuration directory. For example, in case of using JBoss, you may place it jboss-4.0.1sp1\server\..\conf directory. Hope that helps, Norbert O

where do you put the log4j.properties in J2EE?

2006-02-07 Thread kameron cole
I've searched wide for the answer of where to put the log4j.properties file in a J2EE system. It's kind of sad to me that none of the articles begins to address this really essential part of the set up. in one obscure post, someone said a "quick fix" was to put it in one of the extension classloa

How to use relative filename in log4j.properties?

2006-02-07 Thread Zsolt
Hi, I use logging-log4j-1.2.13 from tomcat-5.5.15. How can I use relative filenames to get the log files under tomcat/logs? Zsolt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

big commit

2006-02-07 Thread Scott Deboy
Should fix Jake's problems, along with other things (see commit msg for details). I don't like how I left what settings were being persisted (didn't persist table column model but built a new list using it). If you want to tweak things, go for it. I was hoping locationInfo would work with cha