serviceLog

package
v0.0.0-...-bd0de05 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alert

func Alert(f string, v ...interface{})

Alert logs a message at alert level.

func Critical

func Critical(f string, v ...interface{})

Critical logs a message at critical level.

func Debug

func Debug(f string, v ...interface{})

Debug logs a message at debug level.

func Emergency

func Emergency(f string, v ...interface{})

Emergency logs a message at emergency level.

func Error

func Error(f string, v ...interface{})

Error logs a message at error level. 调用此方法时请不要使用fmt方法

func ErrorWithUserInfo

func ErrorWithUserInfo(f string, userId, userName string, v ...interface{})

Error logs With UserInfo at error level.

func Info

func Info(f string, v ...interface{})

Info compatibility alias for Warning()

func Informational

func Informational(f string, v ...interface{})

Informational logs a message at info level.

func Init

func Init(nodeId string, isConsole bool)

func Notice

func Notice(f string, v ...interface{})

Notice logs a message at notice level.

func SetWriteFile

func SetWriteFile(filePath string, console bool)

func Stack

func Stack() []byte

func StackError

func StackError(f string, v ...interface{})

调用此方法时请不要使用fmt方法

func Trace

func Trace(f string, v ...interface{})

Trace logs a message at trace level. compatibility alias for Warning()

func Warn

func Warn(f string, v ...interface{})

Warn compatibility alias for Warning()

func Warning

func Warning(f string, v ...interface{})

Warning logs a message at warning level.

Types

This section is empty.

Directories

Path Synopsis
Package logs provide a general log interface Usage:
Package logs provide a general log interface Usage:

Jump to

Keyboard shortcuts

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