Where does all the logging goes to?

47 views
Skip to first unread message

André Miranda Moreira

unread,
May 22, 2014, 2:57:30 AM5/22/14
to res...@googlegroups.com
In a running app, where does the logging goes to?
There is the default Hunchentoot logging. Does RESTAS also logs something somewhere? 
Which file/stream I should print to log accordingly?

Thanks in advance.

Orivej Desh

unread,
May 22, 2014, 12:08:32 PM5/22/14
to res...@googlegroups.com
RESTAS does not log anything, and it also disables Hunchentoot logging by
default. Logging is application specific, and you decide what to log and
where. For example, to restore Hunchentoot default behaviour:

(defclass my-acceptor (restas:restas-acceptor)
()
(:default-initargs
:message-log-destination *error-output*
:access-log-destination *error-output*))

(restas:start ... :acceptor-class 'my-acceptor)

Hunchentoot calls the ACCEPTOR-LOG-MESSAGE method via its helper LOG-MESSAGE*.
You can define this method for 'my-acceptor to augment default behaviour, and
you can call that helper to log your own messages.

André Miranda Moreira

unread,
May 28, 2014, 7:44:12 PM5/28/14
to res...@googlegroups.com
Thank you very much. That worked.

I'll read a bit the Hunchentoot documentation, too.
Reply all
Reply to author
Forward
0 new messages