You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by newbro <se...@yahoo.com> on 2007/05/31 03:03:05 UTC

tail -f deletes logs? (WAS: problem reading logs)


I have errors using tail -f to read my log files.  If I have the tail -f
command running when the log is supposed to roll over (midnight) then it
does not copy the log, but just truncates it.  I lose a day's worth of logs.

Has anyone else seen this?  Any workaround?

Not sure if this post was related:

saturn wrote:
> 
> is there any problem reading a log (written using log4j) using tail -1f
> logname.log (unix command)?    are they somehow locked by log4j or the
> application itself??
> 

-- 
View this message in context: http://www.nabble.com/problem-reading-logs-tf2325173.html#a10885653
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org