Re: help with logging

John C. Mallery <[email protected]> Thu, 3 Feb 2005 10:45:30 +0100
Newsgroups gmane.lisp.cl-http
Message-ID <[email protected]>
My point is that you can write whatever logging you like.  The facility 
is very flexible, but requires reading the code and doc strings.

However, adding random stuff to defined log formats will mean that you 
cannot use standard tools to  analyze you log.

Note that the  console log does what Mark wants.

Mark may want to look at how http:notification-log works, with  
particular attention to (METHOD HTTP::WRITE-LOG-ENTRY 
(HTTP::NOTIFICATION-LOG-ENTRY T))

On Feb 2, 2005, at 12:11 PM, Martin Simmons wrote:

>>>>>> On Wed, 2 Feb 2005 10:07:58 +0100, "John C. Mallery" 
>>>>>> <[email protected]> said:
>
>   John> Why not  look at how http:extended-common-file-log does it?
>
> 'coz it doesn't :-)
>
> E.g. on cutler.cam.lispworks.com using
>
> (setq http:*log-access-log-class* 'http:extended-common-file-log)
> (http::clear-access-logs)
> (http:add-virtual-host "cutler2.cam.lispworks.com" 8000 nil)
> (http:export-url
>  "http://cutler2.cam.lispworks.com:8000/bar.txt"
>  :text-file
>  :pathname "http:http;-release-notes-.text")
>
> it logged
>
> 192.168.1.27	-	-	[2005-02-02 11:05:26]	"GET /bar.txt 
> HTTP/1.1"	200	24500	-	-
>
> when I accessed http://cutler2.cam.lispworks.com:8000/bar.txt
>
>
>   John> On Jan 12, 2005, at 4:28 AM, Mark Klein wrote:
>
>>>
>>>
>>> Can someone give me a simple code fragment that shows how to add an
>>> item to the  the log that is automatically displayed when loading
>>> cl-http? I just want to be able to add a log entry that includes the
>>> server IP address, a time stamp, and a short string. I'd appreciate
>>> the help.
>>>
>>> Thanks,
>>>
>>> Mark
>>>
>>> -- 
>>> Mark Klein
>>> Principal Research Scientist
>>> Massachusetts Institute of Technology
>>> 77 Massachusetts Avenue, NE20-336
>>> Cambridge MA 02139 USA
>>> [email protected]
>>> http://ccs.mit.edu/klein/
>
> __Martin
>


_______________________________________________
WWW-CL mailing list
[email protected]
http://lists.csail.mit.edu/mailman/listinfo/www-cl