Using HTMLLayout with DailyRollingFileAppender

2008-07-01 Thread Aggarwal, Rajat
HI All, I have a requirement in one of my prjects that the log files be generated in HTML format and that they should automatically be rolled over everyday. For thi purpose, I am trying to use HTMLLayout with DailyRollingFileAppender. However, the file is not rolled over. Instead, the log infor

Specify Log Folder path dynamically

2008-07-01 Thread Dubois, Fabien
Hi everybody, I have a problem: I develop a web application, I want to create my log files in a Folder in the context like this: $CATALINA_HOME/webapps/mywebapp/ $LOG_FOLDER. I use my own FileAppender to create a log file every day which contains the date in the name file. It is working

Facing a problem while configuring the Log4j

2008-07-01 Thread ahmadbasha.shaik
Hi I have noticed that while I try to configure Log4j using Apach Log4j API in an initialization servlet in my web application. It sort of stops displaying the other statements that are by default displayed usually. (i.e. Started J2EE application ... and so on and so forth.. ). These are not g

Re: Specify Log Folder path dynamically

2008-07-01 Thread Jacob Kjome
There are lots of references to doing this on the list.  I suggest you search.  In short, you can either add properties directlyto the Property configurator, if you manually configure Log4j, or set a Java System property java -Dlog.dir=/some/path/to/log/dir And in all cases, you refe

Re: Facing a problem while configuring the Log4j

2008-07-01 Thread Jacob Kjome
Well, it depends what your config file looks like.  Also, sounds like you are using JBoss.  I think the classloader is server-wide, correct?  Therefore, you are using a single instance of Log4j and, thus, utilizing a single Logger repository.  So, whenever you perform configuration from any app

Re: How to use a RollingFileAppender asynchronously?

2008-07-01 Thread James A. N. Stauffer
Multiple processes can't write to the same file even with AsyncAppender. AsyncAppender is so that logging doesn't have to wait for the message to be written when the underlying appender could take a while to write. James A. N. Stauffer http://www.geocities.com/stauffer_james/ Are you good? Take t

Re: isErrorEnabled()

2008-07-01 Thread James A. N. Stauffer
It doesn't look like there is an isErrorEnabled method but you could use logger.isEnabledFor(Level.ERROR) Why would you ever disable the error level? James A. N. Stauffer http://www.geocities.com/stauffer_james/ Are you good? Take the test at http://www.livingwaters.com/good/ On Mon, Jun 23, 20

Re: Reg custome log levels

2008-07-01 Thread James A. N. Stauffer
You can map the log4j levels as follows and then just use the standard levels. 0: OFF 1: WARN 2: INFO 3: DEBUG (or TRACE) James A. N. Stauffer http://www.geocities.com/stauffer_james/ Are you good? Take the test at http://www.livingwaters.com/good/ On Mon, Jun 23, 2008 at 3:58 PM, pram <[EMAIL

Re: Logging levels per workstation

2008-07-01 Thread James A. N. Stauffer
If each workstation is running log4j then you can just use a different config file. James A. N. Stauffer http://www.geocities.com/stauffer_james/ Are you good? Take the test at http://www.livingwaters.com/good/ On Mon, Jun 30, 2008 at 9:25 AM, Chris Gilliam <[EMAIL PROTECTED]> wrote: > Hello All

Re: using log4j with OAS for some reasone all the logging activity hangs from all the applications deployed

2008-07-01 Thread James A. N. Stauffer
The sub-applications may be trying to reconfigure logging. Run with -Dlog4j.debug to see if that is happening. James A. N. Stauffer http://www.geocities.com/stauffer_james/ Are you good? Take the test at http://www.livingwaters.com/good/ On Mon, Jun 30, 2008 at 9:32 AM, Amgad Mohamed <[EMAIL PRO

Defined log4j.properties file but getting - No appenders could be found for logger (... class name) - Please intialize the log4j system properly

2008-07-01 Thread Rashmi
Hello, I referred to the Log4J Manual (1.2.9) and set up the log4j.properties file under the project's C:/dev/projects/projecta/WEB-INF/classes folder. The log4j.properties file has: dir=C:/dev/projects/projecta/logs file=projecta.log target=${dir}/${file} #log4j.debug=true log4j.rootLogger=DEBU

Re: Defined log4j.properties file but getting - No appenders could be found for logger (... class name) - Please intialize the log4j system properly

2008-07-01 Thread Jacob Kjome
You need to put the properties file in the same classloader (or higher) as log4j.jar.  So, if you put log4j.jar in shared/lib, then you need to put the properties file at that level as well.  Standard Java classloading does not allow a parent loader to see child loaders.  If you still want log4

Re: Defined log4j.properties file but getting - No appenders could be found for logger (... class name) - Please intialize the log4j system properly

2008-07-01 Thread Rashmi
Thank you very much, logging works now. -r On Tue, Jul 1, 2008 at 3:47 PM, Jacob Kjome <[EMAIL PROTECTED]> wrote: > You need to put the properties file in the same classloader (or higher) as > log4j.jar. So, if you put log4j.jar in shared/lib, then you need to put the > properties file at that l