jjwiseman
2018-3-14 21:10:57
in racket/logging
, is there any notion of logger hierarchy (along the lines of e.g. python’s logging
module)?
jjwiseman
2018-3-14 21:23:23
e.g. creating a logger with id a.b.c.d
and being able to set a logging level on a logger a.b
and have it set the levels on a.b.c
and a.b.c.d
?
notjack
2018-3-14 21:24:46
@jjwiseman you can set a “parent logger” when creating a new logger, and new loggers always send events to their parent so any logger level filtering on the parent results in all children loggers being filtered
notjack
2018-3-14 21:24:53
that’s not based on the id of the logger though
notjack
2018-3-14 21:25:27
you’d have to use make-logger
directly instead of define-logger
jjwiseman
2018-3-14 21:27:26
ok, thanks.