Squid Logs -> Windows Notepad

From: Flippie Spies <flippie@dont-contact.us>
Date: Fri, 25 Jun 1999 17:14:56 +0200 (SAST)

I have a question about Squid's logs.
When I do a 'less access.log' is looks like this:

host - - [25/Jun/1999:15:55:29 +0200] "POST
http://centauri.vwv.net/scripts/bankfin/wizard.exe HTTP/1.0" 200 15158
TCP_MISS:DIRECT

Each log entry separate. Now if I try to open access.log with
Windows notepad, all the entries is joined in one long line like this:

interactive113.VWV.net - - [25/Jun/1999:15:55:29 +0200] "POST
http://centauri.vwv.net/scripts/bankfin/wizard.exe HTTP/1.0" 200 15158
TCP_MISS:DIRECTinteractive113.VWV.net - - [25/Jun/1999:15:55:29 +0200]
"POST http://centauri.vwv.net/scripts/bankfin/wizard.exe HTTP/1.0" 200
15158 TCP_MISS:DIRECTinteractive113.VWV.net - - [25/Jun/1999:15:55:29
+0200] "POST http://centauri.vwv.net/scripts/bankfin/wizard.exe HTTP/1.0"
200 15158 TCP_MISS:DIRECTinteractive113.VWV.net - - [25/Jun/1999:15:55:29
+0200] "POST http://centauri.vwv.net/scripts/bankfin/wizard.exe HTTP/1.0"
200 15158 TCP_MISS:DIRECT

I've looked in "access_log.c" and got this:
    else
        accessLogSquid(al, &mb);
    if (Config.onoff.log_mime_hdrs) {
        char *ereq = log_quote(al->headers.request);
        char *erep = log_quote(al->headers.reply);
        memBufPrintf(&mb, " [%s] [%s]\n", ereq, erep);
        safe_free(ereq);
        safe_free(erep);
    } else {
        memBufPrintf(&mb, "\n");
        ^^^^^^^^^^^^^^^^^^^^^^^^
This looks like the new string command. But does Microsoft Notepad
reconize this "\n".

I need this for a program that I must write to analize each users use.
Now the driver I'am using is a ASCII driver, but there is no seperate
lines, so everything is a mess if I open it with this driver.

Is this "\n" compatible with ASCII. If not, with what must I change it
with.

I am not on the list, so please reply to "Flippie@vwv.com"

Thanks
Received on Fri Jun 25 1999 - 09:13:19 MDT

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