loggers

package
v0.21.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ECS

type ECS struct{}

ECS is a logger that will print logs in Elastic Common Schema format.

func NewECS

func NewECS() ECS

NewECS creates a new ECS logger.

func (ECS) Error

func (logger ECS) Error(ctx context.Context, msg string, info ...extensions.LogInfo)

Error logs a message at error level with context and additional info.

func (ECS) Info

func (logger ECS) Info(ctx context.Context, msg string, info ...extensions.LogInfo)

Info logs a message at info level with context and additional info.

func (ECS) Warning added in v0.19.4

func (logger ECS) Warning(ctx context.Context, msg string, info ...extensions.LogInfo)

Warning logs a message at warning level with context and additional info.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL