debug

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

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

Debug prints a debug information to the log with file and line.

func GetFileLine

func GetFileLine() (string, int)

GetFileLine return file name and line

func GetFullPackageAndFunctionName

func GetFullPackageAndFunctionName(i interface{}) string

GetFullPackageAndFunctionName return full path funciton name

func GetFullPackageAndFunctionNameAndLine

func GetFullPackageAndFunctionNameAndLine(function interface{}) string

GetFullPackageAndFunctionNameAndLine return package and function name and line

func GetShortPackageAndFunctionName

func GetShortPackageAndFunctionName(function interface{}) string

GetShortPackageAndFunctionName return package and function name of passed function

func GetShortPackageAndFunctionNameAndLine

func GetShortPackageAndFunctionNameAndLine(function interface{}) string

GetShortPackageAndFunctionNameAndLine return package and function name and line

func LogError

func LogError(out io.Writer, v ...interface{})

LogError log into out with [Error] prefix

func LogFatal

func LogFatal(out io.Writer, v ...interface{})

LogFatal log into stdout with [Fatal] prefix. Followed by a call to exit(1)

func LogInfo

func LogInfo(out io.Writer, v ...interface{})

LogInfo log into out with [Info] prefix

func LogPanic

func LogPanic(out io.Writer, v ...interface{})

LogPanic log into stdout with [Panic] prefix. Followed by a call to panic().

func LogWarning

func LogWarning(out io.Writer, v ...interface{})

LogWarning log into out with [Warning] prefix

func MatchErrorWithPanic

func MatchErrorWithPanic(err error, errStr string)

MatchErrorWithPanic recover panic if there is panic , set error to panic

Types

This section is empty.

Jump to

Keyboard shortcuts

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