logger

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendLog

func AppendLog(id string, msg string) error

AppendLog append log to specified file.

func CreateOnNotExist

func CreateOnNotExist(id string) error

CreateOnNotExist create log file and log dir if not exists.

func Debug

func Debug(msg interface{}, id string)

Debug creates log of debug level.

func Error

func Error(msg interface{}, id string)

Error creates log of error level.

func Fatal

func Fatal(msg interface{}, id string)

Fatal creates log of fatal level.

func Info

func Info(msg interface{}, id string)

Info creates log of info level.

func Notice

func Notice(msg interface{}, id string)

Notice creates log of notice level.

func Warning

func Warning(msg interface{}, id string)

Warning creates log of warning level.

Types

This section is empty.

Jump to

Keyboard shortcuts

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