console

package
v0.0.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler() *Handler

func (*Handler) Construct

func (ss *Handler) Construct(option *option.Option[*Option], repo *logging.LogFormatterContainer)

func (*Handler) Log

func (ss *Handler) Log(logData *logging.LogData)

type Option

type Option struct {
	Formatter    string                   `koanf:"Formatter"`
	WithFileLine bool                     `koanf:"WithFileLine"`
	FileLineSkip int                      `koanf:"FileLineSkip"`
	ErrorLevel   logging.Level            `koanf:"ErrorLevel"`
	Filter       map[string]logging.Level `koanf:"Filter"`
}

Jump to

Keyboard shortcuts

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