log

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config log.Config

全局变量,只一个实例,只提供config

func (*Config) Build

func (c *Config) Build() *log.Logger

func (*Config) InitAfterInject

func (c *Config) InitAfterInject()

func (*Config) InitBeforeInjectWithInitConfig

func (c *Config) InitBeforeInjectWithInitConfig(conf *initconf.InitConfig)

type Logger

type Logger struct {
	*log.Logger
	Conf Config
}

func (*Logger) Close

func (l *Logger) Close() error

func (*Logger) Config

func (l *Logger) Config() any

func (*Logger) Init

func (l *Logger) Init() error

Jump to

Keyboard shortcuts

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