logger

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLoggerLevel = logrus.InfoLevel
)
View Source
const ModuleName = "logger"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Level string `mapstructure:"level"`
}

func (*Config) IsActive added in v0.3.0

func (c *Config) IsActive() bool

type Logger

type Logger struct {
	*logrus.Entry
	// contains filtered or unexported fields
}

func GetLogger

func GetLogger(modules ...string) *Logger

GetLogger for the module

func (*Logger) Enable added in v0.3.0

func (l *Logger) Enable(level logrus.Level) bool

type Module added in v0.3.0

type Module struct {
	// contains filtered or unexported fields
}

func NewModule added in v0.3.0

func NewModule() *Module

func (*Module) Config added in v0.3.0

func (m *Module) Config() module.ConfigInterface

func (*Module) Name added in v0.3.0

func (m *Module) Name() string

func (*Module) NotifyStartSuccess added in v0.3.0

func (m *Module) NotifyStartSuccess()

func (*Module) RequiredModules added in v0.3.0

func (m *Module) RequiredModules() []string

func (*Module) Shutdown added in v0.3.0

func (m *Module) Shutdown(ctx context.Context, mgr *module.Manager) error

func (*Module) Start added in v0.3.0

func (m *Module) Start(ctx context.Context, mgr *module.Manager) error

Jump to

Keyboard shortcuts

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