logger

package
v0.0.0-...-c1d59c6 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCloudWatchHook

func AddCloudWatchHook(log *logrus.Logger, key, secret, region, group string) error

func AddSplunkHook

func AddSplunkHook(log *logrus.Logger, host, port, token string) error

func ConfigLogger

func ConfigLogger(log *logrus.Logger, level string) error

Types

type Formatter

type Formatter struct {
	Hostname string
}

func NewCloudwatchFormatter

func NewCloudwatchFormatter() *Formatter

NewCloudwatchFormatter creates a new log formatter

func (*Formatter) Format

func (f *Formatter) Format(entry *logrus.Entry) ([]byte, error)

Format is the log formatter for the entry

Jump to

Keyboard shortcuts

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