logs

package
v0.0.0-...-4e24f74 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(v ...interface{})

func Error

func Error(v ...interface{})

func Info

func Info(v ...interface{})

func Infof

func Infof(format string, v ...interface{})

func Level

func Level(l LogLevel)

func SetSetting

func SetSetting(setting Setting)

func Warn

func Warn(v ...interface{})

Types

type LogLevel

type LogLevel int
const (
	LEVEL_ERROR LogLevel = iota
	LEVEL_WARN
	LEVEL_INFO
	LEVEL_DEBUG
)

type Setting

type Setting struct {
	FilePrefix   string
	SplitFile    bool
	WriteConsole bool
	WriteFile    bool
}

func DefaultSetting

func DefaultSetting() Setting

Jump to

Keyboard shortcuts

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