Re: [SQU] access.log format

From: Max Dittrich <Dittrich@dont-contact.us>
Date: Fri, 01 Sep 2000 14:44:00 +0200

Francesco Da Riva wrote:
>
> Hello All,
> my name is Francesco Da Riva and I use squid for my proxy server. My
> version of squid is 2.3 . My problem is access.log format. The date is in
> unix format not in a human redeabele format. How could I change the format?
>
> Thanks
> Francesco Da Riva
>
> P.S. Sorry for my very bad English.
>

Hi Francesco,

expecting you got a perl-interpreter, here are a few lines to convert
umt to local time:

$ cat localtime
#!/usr/local/bin/perl -w

@mname = qw( Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec);

$utime = $ARGV[ 0];
( $sec, $min, $hour, $mday, $mon, $year ) = localtime( $utime );
$mname = $mname[ $mon];
$year += 1900;

print "LOCALTIME: $mday $mname $year $hour:$min:$sec\n";

...max

--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Fri Sep 01 2000 - 06:37:01 MDT

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