logger

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 11

Documentation

Index

Constants

View Source
const (
	DEFAULT_FILE = "log.log"
)

Variables

This section is empty.

Functions

func Error

func Error(args ...interface{})

func Errorf

func Errorf(template string, args ...interface{})

func Fatal

func Fatal(args ...interface{})

func GetLogStr

func GetLogStr(needLog string) string

func GetMessage added in v0.7.0

func GetMessage(template string, fmtArgs []interface{}) string

getMessage format with Sprint, Sprintf, or neither.

func Info

func Info(args ...interface{})

func Infof

func Infof(template string, args ...interface{})

func InitLog

func InitLog(fileDir string, serviceName string, port string, console bool, json bool, maxAgeDay uint64)

func NewLogInstance added in v0.6.10

func NewLogInstance(fileDir string, serviceName string, port string, console bool, json bool, maxAgeDay uint64) *slog.Logger

func Panic

func Panic(args ...interface{})

func Sync

func Sync()

func Warn

func Warn(args ...interface{})

func Warnf

func Warnf(template string, args ...interface{})

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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