golog

package
v0.0.0-...-2e81f5e Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DebugLevel = "debug"
	InfoLevel  = "info"
	WarnLevel  = "warn"
	ErrorLevel = "error"
)

log level

Variables

View Source
var (
	ErrParam = errors.New("invalid parameter")
)

variable

Functions

func Close

func Close()

Close : close golog and flush buffer

func Debug

func Debug(format string, a ...interface{})

Debug : output "debug" message

func Error

func Error(format string, a ...interface{})

Error : output "error" message

func Info

func Info(format string, a ...interface{})

Info : output "info" message

func Init

func Init(level string, enableStdout bool, enableFile bool, filePrefix string) error

Init : initialize golog

func Warn

func Warn(format string, a ...interface{})

Warn : output "warn" message

Types

This section is empty.

Jump to

Keyboard shortcuts

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