[hunchentoot-devel] log files

Hi. I forgot, how do I set error log and access log files ? Thanks

On Mon, Dec 19, 2011 at 4:09 AM, Haris Bogdanovich <fbogdanovic@xnet.hr> wrote:
I forgot, how do I set error log and access log files ?
A good way to find out is to look at the manual: http://weitz.de/hunchentoot/#logging -Hans

I started Hunchentoot by (make-instance 'acceptor :access-log-destination "c:/lisp/log-1.txt" :message-log-destination "c:/lisp/log-2.txt") and a page can not be displayed but I don't get some log in c:/lisp/log-1.txt or c:/lisp/log-2.txt ?

On Mon, Dec 19, 2011 at 6:36 PM, Haris Bogdanovich <fbogdanovic@xnet.hr> wrote:
I started Hunchentoot by (make-instance 'acceptor :access-log-destination "c:/lisp/log-1.txt" :message-log-destination "c:/lisp/log-2.txt") and a page can not be displayed but I don't get some log in c:/lisp/log-1.txt or c:/lisp/log-2.txt ?
I would trace hunchentoot:acceptor-log-message, acceptor-message-log-destination and cl:open and try to work from there. -Hans

I did the following: (setf acc (make-instance 'acceptor)) (setf (acceptor-message-log-destination acc) "c:/log.txt") (acceptor-log-message acc :error "%s") and something is written in c:/log.txt it just states ERROR %s. How should look the format string ? I thought it has to do with format function but obviously it doesn't. Are there some instructions how to write format string ?

On Tue, Dec 20, 2011 at 11:48:58PM +0100, Haris Bogdanovich wrote:
I did the following:
(setf acc (make-instance 'acceptor)) (setf (acceptor-message-log-destination acc) "c:/log.txt") (acceptor-log-message acc :error "%s")
??? What's that format string supposed to be/do?
and something is written in c:/log.txt it just states ERROR %s. How should look the format string ?
Depends on what you want it to do .. (acceptor-log-message acc :error "User ~A did something stupid~%" "Carl")
I thought it has to do with format function but obviously it doesn't. Are there some instructions how to write format string ?
Besides the fine chapter on format in the Common Lisp Hyperspec? Maybe http://www.gigamonkeys.com/book/a-few-format-recipes.html. HTH, Ralf Mattes
_______________________________________________ tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel

I tried to log message with all severity levels (acceptor-log-message acc :error "") (acceptor-log-message acc :info "") (acceptor-log-message acc :warning "") A page can not be opened but there is no any kind of message. Where is the problem ?

"Haris Bogdanovich" <fbogdanovic@xnet.hr> writes:
I tried to log message with all severity levels
(acceptor-log-message acc :error "")
(acceptor-log-message acc :info "") (acceptor-log-message acc :warning "")
A page can not be opened but there is no any kind of message. Where is the problem ?
Did you at any point call hunchentoot:start? Zach

Now I called start and there is some lizard on http://localhost Now when I call accept-log-message, nothing is written in c:/log.txt, I get the same output in repl but again without a message ?
participants (4)
-
Hans Hübner
-
Haris Bogdanovich
-
rm@tuxteam.de
-
Zach Beane