Browse Source

Add JsonLevel log level

Taylor Gerring 10 năm trước cách đây
mục cha
commit
41d80ba17b
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      logger/loggers.go

+ 2 - 1
logger/loggers.go

@@ -30,7 +30,7 @@ type message struct {
 	msg   string
 }
 
-type LogLevel uint8
+type LogLevel uint32
 
 const (
 	// Standard log levels
@@ -40,6 +40,7 @@ const (
 	InfoLevel
 	DebugLevel
 	DebugDetailLevel
+	JsonLevel = 1000
 )
 
 // A Logger prints messages prefixed by a given tag. It provides named