From 5e6d3c41feb65a147958c96d5c0bd48d146e5780 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Wed, 11 Dec 2019 18:47:22 -0600 Subject: [PATCH] Document the logging levels Closes #71 --- slog.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/slog.go b/slog.go index 6ca8160..d2cf1b3 100644 --- a/slog.go +++ b/slog.go @@ -287,11 +287,23 @@ type Level int // // The default level is Info. const ( + // LevelDebug is used for development and debugging messages. LevelDebug Level = iota + + // LevelInfo is used for normal informational messages. LevelInfo + + // LevelWarn is used when something has possibly gone wrong. LevelWarn + + // LevelError is used when something has certainly gone wrong. LevelError + + // LevelCritical is used when when something has gone wrong and should + // be immediately investigated. LevelCritical + + // LevelFatal is used when the process is about to exit due to an error. LevelFatal )