Documentation
¶
Index ¶
- Constants
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Init(logFile string)
- func InitWithLevel(logFile string, level string)
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func Trace(args ...interface{})
- func Tracef(format string, args ...interface{})
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
Constants ¶
View Source
const ( PanicLevel = "panic" FatalLevel = "fatal" ErrorLevel = "error" WarnLevel = "warn" InfoLevel = "info" DebugLevel = "debug" TraceLevel = "trace" )
LogLevel constants
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(logFile string)
Init initializes the logger with file output and configures log level from environment variables
func InitWithLevel ¶
InitWithLevel initializes the logger with a specific log level
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.