logger

package
v0.8.17 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const LogFileSuffix = ".log"

Variables

This section is empty.

Functions

func DefaultLumberjackConfig

func DefaultLumberjackConfig() *logger2.Lumberjack

默认按日期切割日志

Types

type Logger

type Logger slog.Logger

func (*Logger) Debug

func (l *Logger) Debug(msgs ...any)

func (*Logger) Error

func (l *Logger) Error(msgs ...any)

func (*Logger) Info

func (l *Logger) Info(msgs ...any)

func (*Logger) Warn

func (l *Logger) Warn(msgs ...any)

type Service

type Service struct {
	service.BaseStruct
}

func (*Service) Start

func (s *Service) Start(wg *sync.WaitGroup)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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