You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
457 B
Racket
18 lines
457 B
Racket
3 years ago
|
#lang racket/base
|
||
|
(require racket/format
|
||
|
racket/string
|
||
|
racket/logging)
|
||
|
|
||
|
(provide (all-defined-out))
|
||
|
|
||
|
;; creates `quad2-logger` and associated functions:
|
||
|
;; log-quad2-fatal, log-quad2-error, log-quad2-warning,
|
||
|
;; log-quad2-info, and log-quad2-debug
|
||
|
(define-logger quad2)
|
||
|
|
||
|
(define (message . items)
|
||
|
(log-quad2-info (string-join (map ~a items) " ")))
|
||
|
|
||
|
(define (message-debug . items)
|
||
|
(log-quad2-debug (string-join (map ~a items) " ")))
|