Re: Apache::LogFile, rotatelogs, and line breaks

2002-07-03 Thread Jim Spath

On Wednesday 03 July 2002 12:25 pm, Jim Spath wrote:
> I've been running Apache::LogFile to create a piped log through rotatelogs
> and have experienced some problems.

I have narrowed the problem down to the use of piped logging and 
Apache::LogFile.  When I use Apache::LogFile to write directly to a file, 
this problem does not occur, but when I pipe the output to a file (through 
cat), I run into the same problem with intermittent missing line breaks.

I'd still appreciate some fedback on this, but I think I may just print a 
line break to the file deal with the fact that there will be double line 
breaks most of the time.

> I created a log file that had 2271 entries in it for one hour.
>
> Out of these 2271 entries, 622 of them occured on the same second and wrote
> to the log properly (one entry per line).
>
> However, there were 5 entries in the file where two entries from the same
> second had no line break in between them.
>
> I was wondering if anyone had similair experiences with Apache::LogFile or
> rotatelogs.
>
> Thanks for the help!
> Jim Spath



Apache::LogFile, rotatelogs, and line breaks

2002-07-03 Thread Jim Spath

I've been running Apache::LogFile to create a piped log through rotatelogs 
and have experienced some problems.

I created a log file that had 2271 entries in it for one hour.

Out of these 2271 entries, 622 of them occured on the same second and wrote 
to the log properly (one entry per line).

However, there were 5 entries in the file where two entries from the same 
second had no line break in between them.

I was wondering if anyone had similair experiences with Apache::LogFile or 
rotatelogs.

Thanks for the help!
Jim Spath

--
push@J,[($")x70]for 0..20;sub p{$J[$q][$p]=$_;print"\e[H\e[J";print@$_,$/for@J
;$J[$q][$p]=$"}sub f{sprintf"%.f",pop}for('Just another Perl hacker.'=~/./g){$
t=/ /and$J[20][$X++]=$_,next;{$x=70+$t*($X-70)*.8;$y=20-63.25*$t+50*$t**2;last
if$x<$X;$p=f$x;p$q=f$y;$t+=.1;select$,,$,,$,,.1;redo}$J[20][$X++]=$_}p