Initial commit
This commit is contained in:
14
globals.go
Normal file
14
globals.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package log
|
||||
|
||||
import "log/slog"
|
||||
|
||||
var (
|
||||
// LevelNames set the names associated with custom logging levels.
|
||||
LevelNames = map[slog.Leveler]string{
|
||||
LevelTrace: "TRACE",
|
||||
LevelFatal: "FATAL",
|
||||
}
|
||||
|
||||
// L is the global interface used for calling the logger subfunctions.
|
||||
L = Log{}
|
||||
)
|
||||
Reference in New Issue
Block a user