logging

package
v1.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(config Config) *logrus.Logger

Types

type Config

type Config struct {
	Service ServiceConfig
}

type ServiceConfig

type ServiceConfig struct {
	Env     string
	AppName string
}

type ServiceHook

type ServiceHook struct {
	Env     string
	Service string
}

func NewServiceHook

func NewServiceHook(config ServiceConfig) *ServiceHook

func (*ServiceHook) Fire

func (s *ServiceHook) Fire(entry *logrus.Entry) error

func (*ServiceHook) Levels

func (s *ServiceHook) Levels() []logrus.Level

Jump to

Keyboard shortcuts

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