base

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCallerInfo

func GetCallerInfo(skip int) string

func Level

func Level(levelStr string) logger.Level

func LevelInfo

func LevelInfo(level logger.Level) string

Types

type Base

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

func New

func New(opts ...logger.Option) *Base

func (*Base) GetFileWriter

func (b *Base) GetFileWriter(fc *logger.File) io.Writer

func (*Base) GetSkip added in v0.0.3

func (b *Base) GetSkip() int

type CallerInfo

type CallerInfo struct {
	Func string `json:"fun,omitempty"`
	File string `json:"file,omitempty"`
	Line int    `json:"line,omitempty"`
}

Jump to

Keyboard shortcuts

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