mylog

package module
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeLevel

func ChangeLevel(newlevel string)

func Debug

func Debug(args ...interface{})

Debug uses fmt.Sprint to construct and log a message.

func DebugIf added in v0.1.6

func DebugIf(cond bool, args ...interface{})

func Debugf

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

func DebugfIf added in v0.1.6

func DebugfIf(cond bool, template string, args ...interface{})

func Error

func Error(args ...interface{})

Error uses fmt.Sprint to construct and log a message.

func ErrorIf added in v0.1.6

func ErrorIf(cond bool, args ...interface{})

func Errorf

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

func ErrorfIf added in v0.1.6

func ErrorfIf(cond bool, template string, args ...interface{})

func Fatal

func Fatal(args ...interface{})

Fatal uses fmt.Sprint to construct and log a message, then calls os.Exit.

func FatalIf added in v0.1.6

func FatalIf(cond bool, args ...interface{})

func Fatalf

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

func FatalfIf added in v0.1.6

func FatalfIf(cond bool, template string, args ...interface{})

func Info

func Info(args ...interface{})

Info uses fmt.Sprint to construct and log a message.

func InfoIf added in v0.1.6

func InfoIf(cond bool, args ...interface{})

func Infof

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

func InfofIf added in v0.1.6

func InfofIf(cond bool, template string, args ...interface{})

func MylogInit

func MylogInit(filename string, to_stdout bool, log_level string) error

func MylogInitErr added in v0.1.1

func MylogInitErr(filename string) error

ERR单独存一个文件

func Panic

func Panic(args ...interface{})

Panic uses fmt.Sprint to construct and log a message, then panics.

func PanicIf added in v0.1.6

func PanicIf(cond bool, args ...interface{})

func Panicf

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

func PanicfIf added in v0.1.6

func PanicfIf(cond bool, template string, args ...interface{})

func Warn

func Warn(args ...interface{})

Warn uses fmt.Sprint to construct and log a message.

func WarnIf added in v0.1.6

func WarnIf(cond bool, args ...interface{})

func Warnf

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

func WarnfIf added in v0.1.6

func WarnfIf(cond bool, 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