Documentation ¶
Index ¶
- func GetOutput() (io.Writer, error)
- func LogDebug(args ...interface{})
- func LogDebugf(format string, args ...interface{})
- func LogDebugln(args ...interface{})
- func LogError(args ...interface{})
- func LogErrorf(format string, args ...interface{})
- func LogErrorln(args ...interface{})
- func LogFatal(args ...interface{})
- func LogFatalf(format string, args ...interface{})
- func LogFatalln(args ...interface{})
- func LogInfo(args ...interface{})
- func LogInfof(format string, args ...interface{})
- func LogInfoln(args ...interface{})
- func LogPanic(args ...interface{})
- func LogPanicf(format string, args ...interface{})
- func LogPanicln(args ...interface{})
- func LogPrint(args ...interface{})
- func LogPrintf(format string, args ...interface{})
- func LogPrintln(args ...interface{})
- func LogTracef(format string, args ...interface{})
- func LogTraceln(args ...interface{})
- func LogWarn(args ...interface{})
- func LogWarnf(format string, args ...interface{})
- func LogWarning(args ...interface{})
- func LogWarningf(format string, args ...interface{})
- func LogWarningln(args ...interface{})
- func LogWarnln(args ...interface{})
- func Printf(format string, args ...interface{})
- type FieldMap
- type LogFormatter
- type Logger
- func (l Logger) LogDebug(args ...interface{})
- func (l Logger) LogDebugf(format string, args ...interface{})
- func (l Logger) LogDebugln(args ...interface{})
- func (l Logger) LogError(args ...interface{})
- func (l Logger) LogErrorf(format string, args ...interface{})
- func (l Logger) LogErrorln(args ...interface{})
- func (l Logger) LogFatal(args ...interface{})
- func (l Logger) LogFatalf(format string, args ...interface{})
- func (l Logger) LogFatalln(args ...interface{})
- func (l Logger) LogInfo(args ...interface{})
- func (l Logger) LogInfof(format string, args ...interface{})
- func (l Logger) LogInfoln(args ...interface{})
- func (l Logger) LogPanic(args ...interface{})
- func (l Logger) LogPanicf(format string, args ...interface{})
- func (l Logger) LogPanicln(args ...interface{})
- func (l Logger) LogPrint(args ...interface{})
- func (l Logger) LogPrintf(format string, args ...interface{})
- func (l Logger) LogPrintln(args ...interface{})
- func (l Logger) LogTracef(format string, args ...interface{})
- func (l Logger) LogTraceln(args ...interface{})
- func (l Logger) LogWarn(args ...interface{})
- func (l Logger) LogWarnf(format string, args ...interface{})
- func (l Logger) LogWarning(args ...interface{})
- func (l Logger) LogWarningf(format string, args ...interface{})
- func (l Logger) LogWarningln(args ...interface{})
- func (l Logger) LogWarnln(args ...interface{})
- func (l Logger) Printf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogDebug ¶
func LogDebug(args ...interface{})
LogDebug logs a message at level Debug on the standard logger.Log
func LogDebugf ¶
func LogDebugf(format string, args ...interface{})
LogDebugf logs a message at level Debug on the standard logger.Log
func LogDebugln ¶
func LogDebugln(args ...interface{})
LogDebugln logs a message at level Debug on the standard logger.Log
func LogError ¶
func LogError(args ...interface{})
LogError logs a message at level Error on the standard logger.Log
func LogErrorf ¶
func LogErrorf(format string, args ...interface{})
LogErrorf logs a message at level Error on the standard logger.Log
func LogErrorln ¶
func LogErrorln(args ...interface{})
LogErrorln logs a message at level Error on the standard logger.Log
func LogFatal ¶
func LogFatal(args ...interface{})
LogFatal logs a message at level Fatal on the standard logger then the process will exit with status set to 1.
func LogFatalf ¶
func LogFatalf(format string, args ...interface{})
LogFatalf logs a message at level Fatal on the standard logger then the process will exit with status set to 1.
func LogFatalln ¶
func LogFatalln(args ...interface{})
LogFatalln logs a message at level Fatal on the standard logger then the process will exit with status set to 1.
func LogInfo ¶
func LogInfo(args ...interface{})
LogInfo logs a message at level Info on the standard logger.Log
func LogInfof ¶
func LogInfof(format string, args ...interface{})
LogInfof logs a message at level Info on the standard logger.Log
func LogInfoln ¶
func LogInfoln(args ...interface{})
LogInfoln logs a message at level Info on the standard logger.Log
func LogPanic ¶
func LogPanic(args ...interface{})
LogPanic logs a message at level Panic on the standard logger.Log
func LogPanicf ¶
func LogPanicf(format string, args ...interface{})
LogPanicf logs a message at level Panic on the standard logger.Log
func LogPanicln ¶
func LogPanicln(args ...interface{})
LogPanicln logs a message at level Panic on the standard logger.Log
func LogPrint ¶
func LogPrint(args ...interface{})
LogPrint logs a message at level Info on the standard logger.Log
func LogPrintf ¶
func LogPrintf(format string, args ...interface{})
LogPrintf logs a message at level Info on the standard logger.Log
func LogPrintln ¶
func LogPrintln(args ...interface{})
LogPrintln logs a message at level Info on the standard logger.Log
func LogTracef ¶
func LogTracef(format string, args ...interface{})
LogTracef logs a message at level Trace on the standard logger.Log
func LogTraceln ¶
func LogTraceln(args ...interface{})
LogTraceln logs a message at level Trace on the standard logger.Log
func LogWarn ¶
func LogWarn(args ...interface{})
LogWarn logs a message at level Warn on the standard logger.Log
func LogWarnf ¶
func LogWarnf(format string, args ...interface{})
LogWarnf logs a message at level Warn on the standard logger.Log
func LogWarning ¶
func LogWarning(args ...interface{})
LogWarning logs a message at level Warn on the standard logger.Log
func LogWarningf ¶
func LogWarningf(format string, args ...interface{})
LogWarningf logs a message at level Warn on the standard logger.Log
func LogWarningln ¶
func LogWarningln(args ...interface{})
LogWarningln logs a message at level Warn on the standard logger.Log
Types ¶
type LogFormatter ¶
type LogFormatter struct { // Force quoting of all values ForceQuote bool // DisableQuote disables quoting for all values. // DisableQuote will have a lower priority than ForceQuote. // If both of them are set to true, quote will be forced on all values. DisableQuote bool // TimestampFormat to use for display when a full timestamp is printed. // The format to use is the same than for time.Format or time.Parse from the standard // library. // The standard Library already provides a set of predefined format. TimestampFormat string // The fields are sorted by default for a consistent output. For applications // that log extremely frequently and don't use the JSON formatter this may not // be desired. DisableSorting bool // The keys sorting function, when uninitialized it uses sort.Strings. SortingFunc func([]string) // QuoteEmptyFields will wrap empty fields in quotes if true QuoteEmptyFields bool // FieldMap allows users to customize the names of keys for default fields. // As an example: // formatter := &LogFormatter{ // FieldMap: FieldMap{ // FieldKeyTime: "@timestamp", // FieldKeyLevel: "@level", // FieldKeyMsg: "@message"}} FieldMap FieldMap // contains filtered or unexported fields }
LogFormatter formats logs into text
func NewLogFormatter ¶
func NewLogFormatter() *LogFormatter
type Logger ¶
type Logger struct { }
func (Logger) LogDebug ¶
func (l Logger) LogDebug(args ...interface{})
LogDebug logs a message at level Debug on the standard logger.
func (Logger) LogDebugln ¶
func (l Logger) LogDebugln(args ...interface{})
LogDebugln logs a message at level Debug on the standard logger.
func (Logger) LogError ¶
func (l Logger) LogError(args ...interface{})
LogError logs a message at level Error on the standard logger.
func (Logger) LogErrorln ¶
func (l Logger) LogErrorln(args ...interface{})
LogErrorln logs a message at level Error on the standard logger.
func (Logger) LogFatal ¶
func (l Logger) LogFatal(args ...interface{})
LogFatal logs a message at level Fatal on the standard logger then the process will exit with status set to 1.
func (Logger) LogFatalf ¶
LogFatalf logs a message at level Fatal on the standard logger then the process will exit with status set to 1.
func (Logger) LogFatalln ¶
func (l Logger) LogFatalln(args ...interface{})
LogFatalln logs a message at level Fatal on the standard logger then the process will exit with status set to 1.
func (Logger) LogInfo ¶
func (l Logger) LogInfo(args ...interface{})
LogInfo logs a message at level Info on the standard logger.
func (Logger) LogInfoln ¶
func (l Logger) LogInfoln(args ...interface{})
LogInfoln logs a message at level Info on the standard logger.
func (Logger) LogPanic ¶
func (l Logger) LogPanic(args ...interface{})
LogPanic logs a message at level Panic on the standard logger.
func (Logger) LogPanicln ¶
func (l Logger) LogPanicln(args ...interface{})
LogPanicln logs a message at level Panic on the standard logger.
func (Logger) LogPrint ¶
func (l Logger) LogPrint(args ...interface{})
LogPrint logs a message at level Info on the standard logger.
func (Logger) LogPrintln ¶
func (l Logger) LogPrintln(args ...interface{})
LogPrintln logs a message at level Info on the standard logger.
func (Logger) LogTraceln ¶
func (l Logger) LogTraceln(args ...interface{})
LogTraceln logs a message at level Trace on the standard logger.
func (Logger) LogWarn ¶
func (l Logger) LogWarn(args ...interface{})
LogWarn logs a message at level Warn on the standard logger.
func (Logger) LogWarning ¶
func (l Logger) LogWarning(args ...interface{})
LogWarning logs a message at level Warn on the standard logger.
func (Logger) LogWarningf ¶
LogWarningf logs a message at level Warn on the standard logger.
func (Logger) LogWarningln ¶
func (l Logger) LogWarningln(args ...interface{})
LogWarningln logs a message at level Warn on the standard logger.