Documentation ¶ Index ¶ func Debug(l Level, format string, a ...interface{}) func SetLevel(l Level) func SetOutput(w io.Writer) type Level func LevelFromInt(i int) Level Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Debug ¶ func Debug(l Level, format string, a ...interface{}) Debug writes a debug message if the global level permits. func SetLevel ¶ func SetLevel(l Level) SetLevel sets the global debug level. func SetOutput ¶ func SetOutput(w io.Writer) SetOutput allows overriding the output destination for debug logs. Types ¶ type Level ¶ type Level int Level represents the debug verbosity. const ( // Off disables all debug output. Off Level = iota // Basic provides minimal debugging information. Basic // Detailed provides more verbose debugging. Detailed // Trace is the most verbose level. Trace ) func LevelFromInt ¶ func LevelFromInt(i int) Level LevelFromInt converts an int to a Level. Source Files ¶ View all Source files log.go Click to show internal directories. Click to hide internal directories.