Documentation ¶
Index ¶
- func Error(format string, args ...interface{})
- func ErrorDetails(err error)
- func Info(format string, args ...interface{})
- func PEDetails(err common_type.PluginError)
- func Trace(format string, args ...interface{})
- func Warn(format string, args ...interface{})
- func WarnDetails(err error)
- type Config
- type Encoder
- type ErrorHooker
- type ILogger
- type JsonEncoder
- type Level
- type Logger
- func (l *Logger) Error(format string, args ...interface{})
- func (l *Logger) ErrorDetails(err error)
- func (l *Logger) ErrorDetailsPath(path string, err error)
- func (l *Logger) ErrorPath(path string, format string, args ...interface{})
- func (l *Logger) GetPath() string
- func (l *Logger) Info(format string, args ...interface{})
- func (l *Logger) InfoPath(path string, format string, args ...interface{})
- func (l *Logger) Trace(format string, args ...interface{})
- func (l *Logger) TracePath(path string, format string, args ...interface{})
- func (l *Logger) Warn(format string, args ...interface{})
- func (l *Logger) WarnDetails(err error)
- func (l *Logger) WarnDetailsPath(path string, err error)
- func (l *Logger) WarnPath(path string, format string, args ...interface{})
- func (l *Logger) WithValues(kvs ...interface{}) ILogger
- type PlainEncoder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorDetails ¶
func ErrorDetails(err error)
func PEDetails ¶
func PEDetails(err common_type.PluginError)
func WarnDetails ¶
func WarnDetails(err error)
Types ¶
type ErrorHooker ¶
type ErrorHooker interface {
// contains filtered or unexported methods
}
type ILogger ¶
type ILogger interface { Trace(format string, args ...interface{}) Info(format string, args ...interface{}) Warn(format string, args ...interface{}) Error(format string, args ...interface{}) TracePath(path string, format string, args ...interface{}) InfoPath(path string, format string, args ...interface{}) WarnPath(path string, format string, args ...interface{}) ErrorPath(path string, format string, args ...interface{}) WarnDetailsPath(path string, err error) ErrorDetailsPath(path string, err error) WithValues(keysAndValues ...interface{}) ILogger }
type JsonEncoder ¶
type JsonEncoder struct { EnableBuffer bool // contains filtered or unexported fields }
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
var CommonLogger *Logger
func (*Logger) ErrorDetails ¶
func (*Logger) ErrorDetailsPath ¶
func (*Logger) WarnDetails ¶
func (*Logger) WarnDetailsPath ¶
func (*Logger) WithValues ¶
type PlainEncoder ¶
type PlainEncoder struct { EnableBuffer bool // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.