Documentation
¶
Index ¶
- func AddReplaceFunction(fnToBeReplaced string, replaceWithFn string)
- func AddReplaceFunctions(m map[string]string)
- func AddSkipFunctions(_skipFunctions ...string)
- func Debug(v ...interface{})
- func Debugf(fmtString string, v ...interface{})
- func Error(v ...interface{})
- func Errorf(fmtString string, v ...interface{})
- func Fatal(v ...interface{})
- func Fatalf(fmtString string, v ...interface{})
- func Info(v ...interface{})
- func Infof(fmtString string, v ...interface{})
- func LogEnvStruct(envStruct interface{}, prefix string)
- func LogIfError(err error)
- func LogIfErrorSecondArg(_ interface{}, err error)
- func LogIfErrorToInfo(err error)
- func LogIfErrorToInfoSecondArg(_ interface{}, err error)
- func LogTaggedStructWithMaskingAndWarning(taggedStruct interface{}, tag string, maskTag string, warnTag string, ...)
- func NewErrorLogger(ulogger *ULogger) *log.Logger
- func NewInfoLogger(ulogger *ULogger) *log.Logger
- func Panic(v ...interface{})
- func PanicIfError(err error)
- func PanicIfErrorSecondArg(_ interface{}, err error)
- func Panicf(fmtString string, v ...interface{})
- func ReplaceFunctions() map[string]string
- func SetDebug()
- func SetFormatString(_fmtString string)
- func SetLogLevel(_level LogLevel)
- func SetLogLevelFromString(levelRaw string)
- func SetTimestampFormat(_tsFormat string)
- func SetWriter(_writer io.Writer)
- func SkipFunctions() []string
- func Trace(v ...interface{})
- func Tracef(fmtString string, v ...interface{})
- func UnsetDebug()
- func Warn(v ...interface{})
- func Warnf(fmtString string, v ...interface{})
- type LogEntry
- type LogLevel
- type UErrorWriter
- type UInfoWriter
- type ULog
- func (l ULog) Debug(v ...interface{})
- func (l ULog) Debugf(fmtString string, v ...interface{})
- func (l ULog) Error(v ...interface{})
- func (l ULog) Errorf(fmtString string, v ...interface{})
- func (l ULog) Fatal(v ...interface{})
- func (l ULog) Fatalf(fmtString string, v ...interface{})
- func (l ULog) Info(v ...interface{})
- func (l ULog) Infof(fmtString string, v ...interface{})
- func (l ULog) LogIfError(err error)
- func (l ULog) LogIfErrorSecondArg(tmp interface{}, err error)
- func (l ULog) LogIfErrorToInfo(err error)
- func (l ULog) LogIfErrorToInfoSecondArg(tmp interface{}, err error)
- func (l ULog) Panic(v ...interface{})
- func (l ULog) PanicIfError(err error)
- func (l ULog) PanicIfErrorSecondArg(tmp interface{}, err error)
- func (l ULog) Panicf(fmtString string, v ...interface{})
- func (l ULog) Trace(v ...interface{})
- func (l ULog) Tracef(fmtString string, v ...interface{})
- func (l ULog) Warn(v ...interface{})
- func (l ULog) Warnf(fmtString string, v ...interface{})
- type ULogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddReplaceFunction ¶
func AddReplaceFunctions ¶
func AddSkipFunctions ¶
func AddSkipFunctions(_skipFunctions ...string)
func LogEnvStruct ¶
func LogEnvStruct(envStruct interface{}, prefix string)
func LogIfError ¶
func LogIfError(err error)
func LogIfErrorSecondArg ¶
func LogIfErrorSecondArg(_ interface{}, err error)
func LogIfErrorToInfo ¶
func LogIfErrorToInfo(err error)
func LogIfErrorToInfoSecondArg ¶
func LogIfErrorToInfoSecondArg(_ interface{}, err error)
func NewErrorLogger ¶ added in v1.0.5
func NewInfoLogger ¶ added in v1.0.5
func PanicIfError ¶ added in v1.0.3
func PanicIfError(err error)
func PanicIfErrorSecondArg ¶ added in v1.0.3
func PanicIfErrorSecondArg(_ interface{}, err error)
func ReplaceFunctions ¶
func SetFormatString ¶
func SetFormatString(_fmtString string)
func SetLogLevel ¶
func SetLogLevel(_level LogLevel)
func SetLogLevelFromString ¶
func SetLogLevelFromString(levelRaw string)
func SetTimestampFormat ¶
func SetTimestampFormat(_tsFormat string)
func SkipFunctions ¶
func SkipFunctions() []string
func UnsetDebug ¶
func UnsetDebug()
Types ¶
type LogLevel ¶
type LogLevel int
func GetLogLevel ¶
func GetLogLevel() LogLevel
func LogLevelFromString ¶
type UErrorWriter ¶ added in v1.0.5
type UErrorWriter struct {
Logger *ULogger
}
type UInfoWriter ¶ added in v1.0.5
type UInfoWriter struct {
Logger *ULogger
}
type ULog ¶
type ULog struct{}
func (ULog) LogIfError ¶
func (ULog) LogIfErrorSecondArg ¶
func (ULog) LogIfErrorToInfo ¶
func (ULog) LogIfErrorToInfoSecondArg ¶
func (ULog) PanicIfError ¶ added in v1.0.3
func (ULog) PanicIfErrorSecondArg ¶ added in v1.0.3
type ULogger ¶
type ULogger interface { Trace(v ...interface{}) Tracef(fmtString string, v ...interface{}) Debug(v ...interface{}) Debugf(fmtString string, v ...interface{}) Info(v ...interface{}) Infof(fmtString string, v ...interface{}) Warn(v ...interface{}) Warnf(fmtString string, v ...interface{}) Error(v ...interface{}) Errorf(fmtString string, v ...interface{}) Panic(v ...interface{}) Panicf(fmtString string, v ...interface{}) Fatal(v ...interface{}) Fatalf(fmtString string, v ...interface{}) LogIfError(err error) LogIfErrorSecondArg(tmp interface{}, err error) PanicIfError(err error) PanicIfErrorSecondArg(tmp interface{}, err error) LogIfErrorToInfo(err error) LogIfErrorToInfoSecondArg(tmp interface{}, err error) }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.