Hello,
I'm trying to log the requests that my web server gets. Here's my
trying:
(defmethod handle-request-logging (handler method request)
(with-open-file (file #p"/tmp/araneida.log" :direction :output)
(format file "Foo~%")))
Though the log file doesn't get created. What am I missing?
Thanks in advance.
Regards,
Peter.
··············@gmail.com" <·············@gmail.com> writes:
> I'm trying to log the requests that my web server gets. Here's my
> trying:
>
> (defmethod handle-request-logging (handler method request)
> (with-open-file (file #p"/tmp/araneida.log" :direction :output
:if-does-not-exist :create
:if-exists :supersede
> )
> (format file "Foo~%")))
>
> Though the log file doesn't get created. What am I missing?
--
__Pascal_Bourguignon__ _ Software patents are endangering
() ASCII ribbon against html email (o_ the computer industry all around
/\ 1962:DO20I=1.100 //\ the world http://lpf.ai.mit.edu/
2001:my($f)=`fortune`; V_/ http://petition.eurolinux.org/
On 07 Mar 2005 16:21:47 +0100, Pascal Bourguignon <····@mouse-potato.com> wrote:
>> (defmethod handle-request-logging (handler method request)
>> (with-open-file (file #p"/tmp/araneida.log" :direction :output
> :if-does-not-exist :create
> :if-exists :supersede
>> )
>> (format file "Foo~%")))
Unless I misunderstand how Araneida works you want to replace the
logfile with a new one whenever a new request comes in. Are you sure?
Edi.
--
Lisp is not dead, it just smells funny.
Real email: (replace (subseq ·········@agharta.de" 5) "edi")
Edi Weitz <········@agharta.de> writes:
> On 07 Mar 2005 16:21:47 +0100, Pascal Bourguignon <····@mouse-potato.com> wrote:
>
> >> (defmethod handle-request-logging (handler method request)
> >> (with-open-file (file #p"/tmp/araneida.log" :direction :output
> > :if-does-not-exist :create
> > :if-exists :supersede
> >> )
> >> (format file "Foo~%")))
>
> Unless I misunderstand how Araneida works you want to replace the
> logfile with a new one whenever a new request comes in. Are you sure?
Then that should be:
:if-exists :append
of course. Or keep it open...
--
__Pascal Bourguignon__ http://www.informatimago.com/
You never feed me.
Perhaps I'll sleep on your face.
That will sure show you.