Explorar el Código

Comment log levels.

Bruce Marriner hace 9 años
padre
commit
852a968873
Se han modificado 1 ficheros con 9 adiciones y 1 borrados
  1. 9 1
      logging.go

+ 9 - 1
logging.go

@@ -19,9 +19,17 @@ import (
 )
 
 const (
+
+	// Logs critical errors that can lead to data loss or panic
 	LogError int = iota
+
+	// Logs very abnormal events
 	LogWarning
-	LogNotice
+
+	// Logs normal basic activity like connect/disconnects
+	LogInformational
+
+	// Logs detailed activity including all HTTP/Websocket packets.
 	LogDebug
 )