logger

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Output(text string)
	Recycle()
}

func GetLogger

func GetLogger(ctx micro.Context, name string) (Logger, error)

func NewEmptyLogger

func NewEmptyLogger() Logger

func NewFSLogger

func NewFSLogger(config interface{}) (Logger, error)

func NewStdoutLogger

func NewStdoutLogger() Logger

func NewSyslogLogger

func NewSyslogLogger(config interface{}) (Logger, error)

type LoggerService

type LoggerService interface {
	micro.Service
	Logger() Logger
}

Jump to

Keyboard shortcuts

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