Documentation ¶
Index ¶
- func AddStrippedKeys(strippedKeys []string)
- func ChangeLogLevel(l seelog.LoggerInterface, level string) error
- func CredentialsCleanerBytes(file []byte) ([]byte, error)
- func CredentialsCleanerFile(filePath string) ([]byte, error)
- func Critical(v ...interface{}) error
- func Criticalf(format string, params ...interface{}) error
- func Debug(v ...interface{})
- func Debugf(format string, params ...interface{})
- func Error(v ...interface{}) error
- func ErrorStackDepth(depth int, v ...interface{}) error
- func Errorf(format string, params ...interface{}) error
- func Flush()
- func GetLogLevel() (seelog.LogLevel, error)
- func Info(v ...interface{})
- func Infof(format string, params ...interface{})
- func RegisterAdditionalLogger(n string, l seelog.LoggerInterface) error
- func ReplaceLogger(l seelog.LoggerInterface) seelog.LoggerInterface
- func SetupDatadogLogger(l seelog.LoggerInterface, level string)
- func Trace(v ...interface{})
- func Tracef(format string, params ...interface{})
- func UnregisterAdditionalLogger(n string) error
- func Warn(v ...interface{}) error
- func Warnf(format string, params ...interface{}) error
- type DatadogLogger
- type Replacer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddStrippedKeys ¶
func AddStrippedKeys(strippedKeys []string)
AddStrippedKeys allows configuration keys cleaned up
func ChangeLogLevel ¶
func ChangeLogLevel(l seelog.LoggerInterface, level string) error
ChangeLogLevel changes the current log level, valide levels are trace, debug, info, warn, error, critical and off, it requires a new seelog logger because an existing one cannot be updated
func CredentialsCleanerBytes ¶
CredentialsCleanerBytes scrubs credentials from slice of bytes
func CredentialsCleanerFile ¶
CredentialsCleanerFile scrubs credentials from file in path
func Critical ¶
func Critical(v ...interface{}) error
Critical logs at the critical level and returns an error containing the formated log message
func Criticalf ¶
Criticalf logs with format at the critical level and returns an error containing the formated log message
func Debugf ¶
func Debugf(format string, params ...interface{})
Debugf logs with format at the debug level
func Error ¶
func Error(v ...interface{}) error
Error logs at the error level and returns an error containing the formated log message
func ErrorStackDepth ¶
ErrorStackDepth logs at the error level and the current stack depth plus the additional given one and returns an error containing the formated log message
func Errorf ¶
Errorf logs with format at the error level and returns an error containing the formated log message
func GetLogLevel ¶
GetLogLevel returns a seelog native representation of the current log level
func Infof ¶
func Infof(format string, params ...interface{})
Infof logs with format at the info level
func RegisterAdditionalLogger ¶
func RegisterAdditionalLogger(n string, l seelog.LoggerInterface) error
RegisterAdditionalLogger registers an additional logger for logging
func ReplaceLogger ¶
func ReplaceLogger(l seelog.LoggerInterface) seelog.LoggerInterface
ReplaceLogger allows replacing the internal logger, returns old logger
func SetupDatadogLogger ¶
func SetupDatadogLogger(l seelog.LoggerInterface, level string)
SetupDatadogLogger configure logger singleton with seelog interface
func Tracef ¶
func Tracef(format string, params ...interface{})
Tracef logs with format at the trace level
func UnregisterAdditionalLogger ¶
UnregisterAdditionalLogger unregisters additional logger with name n
Types ¶
type DatadogLogger ¶
type DatadogLogger struct {
// contains filtered or unexported fields
}
DatadogLogger wrapper structure for seelog