From franks-muc@web.de Tue Apr 10 18:21:11 2007 From: Frank Schorr To: log5-devel@common-lisp.net Subject: [log5-devel] feedback and question Date: Wed, 11 Apr 2007 00:21:06 +0200 Message-ID: <487236577@web.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3524683256101227614==" --===============3524683256101227614== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Gary,=20 this is a feed back of my first use of log5.=20 Previously I used log4CL with the daily rolling file appender pruducing a htm= l file to be viewed=20 with the browser. With browser update (F5) it is easy to read continously cha= nging logfiles. This is what I am now doing with log5: (defun prepare-log-file (path) (with-open-file (s path :direction :output :if-exists :supersede) ;;stolen from Log4CL and modified (format s " Log5 Log Messages
Log session start at ~a

" (date-time-as-string (get-universal-time))))) (defparameter *logfile* "C:/lisp/log/mylog.html") (defoutput left "") (defoutput time (formatted-current-time)) (defoutput html-message (html-escape message)) (prepare-log-file *logfile*) (start-sender 'mysender (stream-sender :location *logfile*) :category-spec (application pdf) :output-spec (left time middle category middle html-m= essage middle context right))) The result is a nicely formatted table. It appears that log5 is very flexible, contexts are a cool feature ! 1. suggestion: A push-context command in a source file adds the same context to the list whe= n the file=20 is reloaded/recompiled. Wouldn't it be better to have something like push-new= here ? 2. I wanted to give http://www.flogviewer.com/ a try for viewing the logfile = since it has filters etc. The problem I have is that individual log messages can include many line brea= ks generated by I don't know what. This is not a problem when logging to a html file, but flogviewer expects one= line per message.=20 I tried everthing mentionned in cltl2 relating to *print-right-margin*, *prin= t-miser-width* etc to switch this=20 behaviour off, without success. I am not able to find out where the line brea= ks come from.=20 Could you give me a hint please ? Best regards Frank _______________________________________________________________ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=3D021192 --===============3524683256101227614==--
Time Category Message Context
") (defoutput middle "") (defoutput right "