I do'nt wanna to get your mails again!!Fw: external logger?

From: Andrew <andrew@dont-contact.us>
Date: Mon, 26 Oct 1998 21:10:08 +0800

-----原始郵件-----
寄件者: Alex Rousskov <rousskov@nlanr.net>
收件者: Peter van Dijk <peter-squid@attic.vuurwerk.nl>
副本抄送: squid-users <squid-users@ircache.net>
日期: 1998年10月26日 PM 12:39
主旨: Re: external logger?

>On Mon, 26 Oct 1998, Henrik Nordstrom wrote:
>
>> Sort of. Turn of log rotation and use a named pipe for
>> log file. Then have a separate program that reads the pipe.
>
>Or write a simple Perl script with "tail -f" functionality that will read
>the [standard] log file and pipe the lines to your external logger.
>
>> The downside is that you need to make sure that the log program
>> is running all the time, or Squid will complain heavily.
>
>The script solution avoids this problem since a script can preserve the
last
>position read (and piped to the logger). Should script die, it can be
>restarted from the saved position. Rotation of logs is not a big problem
>either since it is easy to detect in the script (file size gets smaller).
>
>In short, you get a more robust solution, but you pay with disk space and
>your time to write the script.
>
>We used to have a similar script here to restart beta Squid versions when a
>particular string appears in the cache.log. We do not use it now though.
>
>$0.02,
>
>Alex.
>
>
Received on Mon Oct 26 1998 - 06:36:40 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:42:47 MST