Log static web file generator.
This commit is contained in:
parent
e8bd82ef1e
commit
8abf44b2c8
3 changed files with 9 additions and 3 deletions
|
@ -70,12 +70,14 @@
|
|||
(when (or (not (*log-file*))
|
||||
(not (log-file)))
|
||||
(when (not (log-file))
|
||||
(log-file (open-output-file (*log-file*) #:append)))
|
||||
(log-file (open-output-file (*log-file*) #:append))
|
||||
(log-info "Logging started"))
|
||||
(display (format "~A [~A] ~A"
|
||||
(format-current-time)
|
||||
(string-upcase (symbol->string level))
|
||||
(apply format fmt args))
|
||||
(log-file))
|
||||
(newline (log-file))
|
||||
(flush-output (log-file))))
|
||||
|
||||
;; Specific log procedures
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue