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



Apache::LogFile issues

2002-07-01 Thread Jim Spath

Hello everyone,

I'm attempting to implement Apache::LogFile on our production servers and 
running into some problems.

It seems to work fine on our development server, which is running Apache 
1.3.20, except for the fact that we can no longer issue 'apachectl restart', 
we have to stop and start the webserver for it to work.  When we attempt a 
restart, the following error occurs:

--
Syntax error on line 1097 of /usr/local/apachessl/conf/httpd.conf:
Invalid command 'PerlLogFile', perhaps mis-spelled or defined by a module not 
included in the server configuration
--
( PerlFreshRestart is On )

On our production server, we are running Apache 1.3.24, and I cannot get the 
webserver to start with the Apache::LogFile code in the conf file.  It always 
dies with the above error, whether I stop and start or just restart.

The relavant lines from the httpd.conf file are:
--
PerlModule Apache::LogFile
PerlLogFile '|bin/rotatelogs /var/spool/ad_automator/logs/activity_log 3600' 
AdAutomator::Logger
--

Thanks to anyone who can help!

- Jim