Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetOutputLevel ¶
func SetOutputLevel(ll LogLevel)
func SetReportCaller ¶
func SetReportCaller(include bool)
Types ¶
type LogEntry ¶
type LogEntry struct {
// contains filtered or unexported fields
}
func GetCustomLogEntry ¶
type LogLevel ¶
const ( PanicLevel LogLevel = iota // FatalLevel level. Logs and then calls `logger.Exit(1)`. It will exit even if the // logging level is set to Panic. FatalLevel // ErrorLevel level. Logs. Used for errors that should definitely be noted. // Commonly used for hooks to send errors to an error tracking service. ErrorLevel // WarnLevel level. Non-critical entries that deserve eyes. WarnLevel // InfoLevel level. General operational entries about what's going on inside the // application. InfoLevel // DebugLevel level. Usually only enabled when debugging. Very verbose logging. DebugLevel // TraceLevel level. Designates finer-grained informational events than the Debug. TraceLevel )
Click to show internal directories.
Click to hide internal directories.