Should It Log?
Easy · Logging
Loggers like pino or winston skip messages below a minimum level. Here we use four levels, from least to most important: debug < info < warn < error.
Write a function shouldLog(level, minLevel) that returns true when level is at least as important as minLevel.
Next: Format a Log Line