DailyRollingFileAppender, but no new file the next day - why?

2009-05-11 Thread Linnemann, Gerrit
Hallo, I'm using the DailyRollingFileAppender. The Tomcat runs 24/7. But I've to restart Tomcat to get a new log file. It seams that log4j only log until midnight. So I lost information. Here is my configuration: After restarting the server it works fine

Re: Default Initialization Servlet: Determine Hostname?

2009-05-11 Thread Thomas Moorer
Brilliant! I knew it would be something pretty straightforward... I case anyone else is interested here's what I came up with: web.xml Log4jInit Log4jInit core.app.controllers.Log4jInit log4j-dev WEB-INF/classes/log4j-dev.properties log4j-prd

Re: Default Initialization Servlet: Determine Hostname?

2009-05-11 Thread Douglas E Wegscheid
this should be pretty straightforward: you can determine hostname with InetAddress.getLocalHost(). after that, it's just code. you probably won't get an address of "localhost" back, though. localhost usually (always?) maps to 127.0.0.1... Douglas E Wegscheid Lead Technical Analyst, Whirlpool Co

Default Initialization Servlet: Determine Hostname?

2009-05-11 Thread Thomas Moorer
Hi All, I need help with this one. What I am trying to do is set up a default initialization servlet as explained in the manual http://logging.apache.org/log4j/1.2/manual.html (see below) What I would like to do is determine in the Log4jInit servlet's init method the hostname of the server and l

Re: tomcat catalina logs

2009-05-11 Thread Douglas E Wegscheid
there is probably not a guide that enumerates every last little step for your specific setup, but Matt's suggestion is a good start from the tomcat side. googling for "log4j syslog" produced some help (try it!) http://www.jaxmag.com/itr/online_artikel/psecom,id,766,nodeid,147.html what have yo

Re: tomcat catalina logs

2009-05-11 Thread Kaushal Shriyan
On Mon, May 11, 2009 at 7:29 PM, Matt Brown wrote: > > http://wiki.apache.org/tomcat/HowTo#head-af688216137bbf0542fa3f599cd4c41dcba68056 > > -Original Message- > From: Kaushal Shriyan [mailto:kaushalshri...@gmail.com] > Sent: Monday, May 11, 2009 6:40 AM > To: log4j-user@logging.apache.org

RE: tomcat catalina logs

2009-05-11 Thread Matt Brown
http://wiki.apache.org/tomcat/HowTo#head-af688216137bbf0542fa3f599cd4c41dcba68056 -Original Message- From: Kaushal Shriyan [mailto:kaushalshri...@gmail.com] Sent: Monday, May 11, 2009 6:40 AM To: log4j-user@logging.apache.org Subject: tomcat catalina logs Hi Is there a step by step gu

RE: DailyRollingAppender - How does it know when to rollover?

2009-05-11 Thread Marc Farrow
I haven't done this because my brain is too one-dimensional today. Great suggestion. Thanks. Marc Matt Brown-20 wrote: > > > Just a suggestion, but if this is a development server, and the > application is already getting re-deployed more than daily, why not > experiment with a smaller rol

RE: DailyRollingAppender - How does it know when to rollover?

2009-05-11 Thread Matt Brown
Just a suggestion, but if this is a development server, and the application is already getting re-deployed more than daily, why not experiment with a smaller rollover time (daily or hourly)? Just to make sure that DailyRollingAppender isn't somehow borked in your combination of OS / app server

Re: specify the relative directory to log

2009-05-11 Thread Luca Ferrari
On Wednesday 06 May 2009 04:00:48 pm Peter Walter's cat walking on the keyboard wrote: > Hello Luca, > > you can solve this via a system property. > > When you specify your log file like this: > > log4j.appender.LOGFILE.File=${log4j.logpath}/logfile.log > > Log4J replaces ${log4j.logpath} with the

Re: DailyRollingAppender - How does it know when to rollover?

2009-05-11 Thread Marc Farrow
I checked the log file for my container (Tomcat) and there were no error messages that I could see for any rollover messages. However, I guess I am going to have to wait til next month to verify. Since my container is Tomcat and my container gets restarted fairly often (multiple times a day beca

Re: DailyRollingAppender - How does it know when to rollover?

2009-05-11 Thread Paul Smith
the first logging event _after_ the time period computed should roll the file over, however if there is any failure (perhaps because another process has the file handle open, a common problem on Windows), the rollover can fail, and you'll need to wait to the next window (another month). W

RE: DailyRollingAppender - How does it know when to rollover?

2009-05-11 Thread Marc Farrow
This is a fairly simple question. Does anyone that maintains or create LOG4J read these posts anymore? Thanks. -- View this message in context: http://www.nabble.com/DailyRollingAppender---How-does-it-know-when-to-rollover--tp23390773p23481523.html Sent from the Log4j - Users mailing list arc

tomcat catalina logs

2009-05-11 Thread Kaushal Shriyan
Hi Is there a step by step guide to configure log4j with syslog to a centralized server for all the servers running tomcat catalina.out logs. Thanks and Regards Kaushal