Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ECS ¶
type ECS struct {
// contains filtered or unexported fields
}
ECS is a logger that will print logs in Elastic Common Schema ECS format.
type Level ¶ added in v0.54.0
type Level int
Level is the minimum severity a logger will output. Messages with a severity below the configured level are discarded.
type Option ¶ added in v0.54.0
type Option func(levelSetter)
Option is a functional option shared by the loggers of this package.
type Text ¶ added in v0.22.0
type Text struct {
// contains filtered or unexported fields
}
Text is a logger that will print logs in Elastic Common Schema format.
func (Text) Error ¶ added in v0.22.0
Error logs a message at error level with context and additional info.
Click to show internal directories.
Click to hide internal directories.