logger

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogConfig = &struct {
	Path                string
	LogRotateMaxSize    int
	LogRotateMaxBackups int
	LogRotateMaxAge     int
	LogWithGid          bool
}{
	Path:                "stdout",
	LogRotateMaxSize:    500,
	LogRotateMaxBackups: 10,
	LogRotateMaxAge:     14,
	LogWithGid:          true,
}

Functions

func Debugf

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

func Errorf

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

func Infof

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

func InitLogger

func InitLogger()

func Sync

func Sync()

func Warnf

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

func WithBaseContextAndSkipDebugf added in v0.0.35

func WithBaseContextAndSkipDebugf(bc *commons.BaseContext, skip int) func(template string, args ...interface{})

func WithBaseContextAndSkipErrorf added in v0.0.35

func WithBaseContextAndSkipErrorf(bc *commons.BaseContext, skip int) func(template string, args ...interface{})

func WithBaseContextAndSkipInfof added in v0.0.35

func WithBaseContextAndSkipInfof(bc *commons.BaseContext, skip int) func(template string, args ...interface{})

func WithBaseContextAndSkipWarnf added in v0.0.35

func WithBaseContextAndSkipWarnf(bc *commons.BaseContext, skip int) func(template string, args ...interface{})

func WithBaseContextDebugf added in v0.0.3

func WithBaseContextDebugf(bc *commons.BaseContext) func(template string, args ...interface{})

func WithBaseContextErrorf added in v0.0.3

func WithBaseContextErrorf(bc *commons.BaseContext) func(template string, args ...interface{})

func WithBaseContextInfof added in v0.0.3

func WithBaseContextInfof(bc *commons.BaseContext) func(template string, args ...interface{})

func WithBaseContextWarnf added in v0.0.3

func WithBaseContextWarnf(bc *commons.BaseContext) func(template string, args ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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