tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thom Hehl" <T...@pointsix.com>
Subject RE: Logging
Date Thu, 01 Dec 2011 14:01:57 GMT
I'm looking for stack traces. People report defects and we get a stack trace and I need to
see it in the log, but instead, the log is still in the buffer. Usually I have to shutdown
the server and start it back up to get the log entries. I'd just like to be able to flush
the logs without shutting down the server.

-----Original Message-----
From: Pid [mailto:pid@pidster.com] 
Sent: Thursday, December 01, 2011 8:38 AM
To: Tomcat Users List
Subject: Re: Logging

On 01/12/2011 13:03, Thom Hehl wrote:
> 
> 
> -----Original Message-----
> From: Christopher Schultz [mailto:chris@christopherschultz.net]
> Sent: Wednesday, November 30, 2011 6:15 PM
> To: Tomcat Users List
> Subject: Re: Logging
> 
> Thom,
> 
> On 11/30/11 1:04 PM, Thom Hehl wrote:
>>> I'm using VI to reading the log file. I running a Windows RDP.
> 
>> Are you using 'vi' in a way that allows it to get updates from the 
>> file? I'm no 'vi' expert, but I'm sure it reads the entire file at 
>> startup and thinks that it doesn't change.
> 
> Actually, it monitors the file and allows you to load changes if the file changes. The
problem is that this is a test server and so it may take days to dump the log I need. So the
tool reading it is not the problem, it's the fact that tomcat hasn't flushed to the file yet.

Can you explain a little more about where what is generating log data and into which log it
is being written?

How long is the delay between when you expect the event to happen and the emission of a log
record?


p


>> Try using:
> 
>> tail -f stdout.log
> 
>> If you have a POSIX environment handy (like Cygwin, or gnuutils or 
>> whatever).
> 
>> - -chris
> 
>> PS: vi on Windows? That's doing things the hard way. ;)
> 
> Oh, contraire...although one of the hardest editors to learn to use (IBM's XEDIT comes
to mind as equally hard) vi is the best editor to use EVER.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 

-- 

[key:62590808]

Mime
View raw message