Documentation ¶ Index ¶ Constants func Fatalf(format string, args ...any) func Fatalln(args ...any) func Printf(level Level, format string, args ...any) func Println(level Level, args ...any) func SetLogLevel(level Level) type Level func FromString(s string) Level func (l Level) String() string Constants ¶ View Source const ( UNKNOWN = Level(-1) DEBUG = Level(1) INFO = Level(2) WARN = Level(3) ERROR = Level(4) FATAL = Level(5) ) Variables ¶ This section is empty. Functions ¶ func Fatalf ¶ func Fatalf(format string, args ...any) func Fatalln ¶ func Fatalln(args ...any) func Printf ¶ func Printf(level Level, format string, args ...any) func Println ¶ func Println(level Level, args ...any) func SetLogLevel ¶ func SetLogLevel(level Level) Types ¶ type Level ¶ type Level int var LogLevel Level = 2 func FromString ¶ func FromString(s string) Level func (Level) String ¶ func (l Level) String() string Source Files ¶ View all Source files log.go Click to show internal directories. Click to hide internal directories.