Kevin Robert Stravers
Provides simple colored logging functionality of various log levels.
procedure
( logger-color state)→void?
state:(or/c'automatic#t#f)
syntax
( trce expr...)
(trce (+ 1 2) = 3)
3
No suffix prints the expression as well as its result
* suffix prints the result, and _ instead of the expression. Can only handle one argument
^ suffix is similar to * but also prints the date and source location
+ prints the date, source location, expression, and result. It is the most verbose suffix.
All loggers return their last input.
Besides trce , the following loggers are implemented: dbug info warn erro crit ftal . Accompanying suffixes apply.
syntax
( dbug expr...)
syntax
( info expr...)
syntax
( warn expr...)
syntax
( erro expr...)
syntax
( crit expr...)
syntax
( ftal expr...)
syntax
( trce* expr)
syntax
( dbug* expr)
syntax
( info* expr)
syntax
( warn* expr)
syntax
( erro* expr)
syntax
( crit* expr)
syntax
( ftal* expr)
syntax
( trce^ expr)
syntax
( dbug^ expr)
syntax
( info^ expr)
syntax
( warn^ expr)
syntax
( erro^ expr)
syntax
( crit^ expr)
syntax
( ftal^ expr)
syntax
( trce+ expr...)
syntax
( dbug+ expr...)
syntax
( info+ expr...)
syntax
( warn+ expr...)
syntax
( erro+ expr...)
syntax
( crit+ expr...)
syntax
( ftal+ expr...)
(dbug (+ 1 (sqr 2)) = 5)
5
(trce* _ = 3)
3
(crit^ 2025εΉ΄08ζ18ζ₯T03:22:43 (unknown 5 0) _ = "3")
"3"
(info+
2025εΉ΄08ζ18ζ₯T03:22:43
(unknown 6 0)
`(connection-established ,8000)
=
(connection-established 8000))
'(connection-established8000)