Documentation ¶ Index ¶ Variables func Close() func Debugf(format string, args ...any) func Errorf(format string, args ...any) func Infof(format string, args ...any) func InitLogToFile(enabled bool, level string) error func SetLevel(level string) func Warnf(format string, args ...any) type Level Constants ¶ This section is empty. Variables ¶ View Source var LogFile *os.File Functions ¶ func Close ¶ func Close() func Debugf ¶ func Debugf(format string, args ...any) func Errorf ¶ func Errorf(format string, args ...any) func Infof ¶ func Infof(format string, args ...any) func InitLogToFile ¶ func InitLogToFile(enabled bool, level string) error func SetLevel ¶ func SetLevel(level string) func Warnf ¶ func Warnf(format string, args ...any) Types ¶ type Level ¶ type Level int const ( Debug Level = iota Info Warn Error ) Source Files ¶ View all Source files server_log.go Click to show internal directories. Click to hide internal directories.