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 CriticalStackDepth(depth int, v ...interface{}) error
- func Criticalf(format string, params ...interface{}) error
- func Debug(v ...interface{})
- func Debugc(message string, context ...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 InfoStackDepth(depth int, v ...interface{})
- func Infoc(message string, context ...interface{})
- func Infof(format string, params ...interface{})
- func JMXError(v ...interface{}) error
- func JMXInfo(v ...interface{})
- func RegisterAdditionalLogger(n string, l seelog.LoggerInterface) error
- func ReplaceLogger(l seelog.LoggerInterface) seelog.LoggerInterface
- func SanitizeURL(message string) string
- func SetupJMXLogger(i seelog.LoggerInterface, level string)
- func SetupLogger(i seelog.LoggerInterface, level string)
- func Trace(v ...interface{})
- func Tracec(message string, context ...interface{})
- func Tracef(format string, params ...interface{})
- func UnregisterAdditionalLogger(n string) error
- func Warn(v ...interface{}) error
- func WarnStackDepth(depth int, 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 CriticalStackDepth ¶
CriticalStackDepth logs at the critical level and the current stack depth plus the additional given one 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 Debugc ¶
func Debugc(message string, context ...interface{})
Debugc logs at the debug level with context
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 InfoStackDepth ¶
func InfoStackDepth(depth int, v ...interface{})
InfoStackDepth logs at the info level and the current stack depth plus the additional given one
func Infoc ¶
func Infoc(message string, context ...interface{})
Infoc logs at the info level with context
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 SanitizeURL ¶
SanitizeURL sanitizes credentials from a message containing a URL, and returns a string that can be logged safely.
func SetupJMXLogger ¶
func SetupJMXLogger(i seelog.LoggerInterface, level string)
SetupJMXLogger setup JMXfetch specific logger
func SetupLogger ¶
func SetupLogger(i seelog.LoggerInterface, level string)
SetupLogger setup agent wide logger
func Tracec ¶
func Tracec(message string, context ...interface{})
Tracec logs at the trace level with context
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
func Warn ¶
func Warn(v ...interface{}) error
Warn logs at the warn level and returns an error containing the formated log message
func WarnStackDepth ¶
WarnStackDepth logs at the warn level and the current stack depth plus the additional given one and returns an error containing the formated log message
Types ¶
type DatadogLogger ¶
type DatadogLogger struct {
// contains filtered or unexported fields
}
DatadogLogger wrapper structure for seelog