Documentation ¶
Index ¶
- type Level
- type LogAttribute
- type LogAttributeSet
- type Logger
- func (l Logger) Critical(ctx context.Context, err error)
- func (l Logger) Debug(ctx context.Context, msg string, args ...interface{})
- func (l Logger) Error(ctx context.Context, err error)
- func (l Logger) Info(ctx context.Context, msg string, args ...interface{})
- func (l Logger) Warning(ctx context.Context, msg string, args ...interface{})
- type LoggerInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Level ¶
type Level int
Level indicates the severity of the data being logged
const ( // LevelCritical alerts about severe problems. Most of the time, needs some human intervention ASAP LevelCritical Level = iota + 1 // LevelError alerts about events that are likely to cause problems LevelError // LevelWarning warns about events the might cause problems to the system LevelWarning // LevelInfo are routine information LevelInfo // LevelDebug are debug or trace information LevelDebug )
type LogAttribute ¶
type LogAttribute string
LogAttribute represents an information to be extracted from the context and included into the log
type LogAttributeSet ¶
type LogAttributeSet map[LogAttribute]bool
LogAttributeSet is a set of LogAttributes
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is the structure responsible for log data
type LoggerInput ¶
type LoggerInput struct { Level string Attributes LogAttributeSet }
LoggerInput defines the dependencies of a Logger
Click to show internal directories.
Click to hide internal directories.