We break down why a bunch of
println calls is still not logging, introduce the
DEBUG/
INFO/
WARN/
ERROR levels, the concept of a minimum level (
minLevel), and build a minimal logger:
enum class
LogLevel, a single line format
timestamp
[
LEVEL
]
message, filtering by importance (via
ordinal or an explicit
priority), wrapper methods
debug/
info/
warn/
error, and common mistakes when introducing logging.