logger

package
v0.0.0-...-5893fcd Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LevelMap = map[Level]string{
	1: "Info  ",
	2: "Debug ",
	3: "Warn  ",
	4: "Error ",
	5: "Panic ",
}

Functions

func Debug

func Debug(args ...interface{})

func DebugTimes

func DebugTimes(times int, args ...interface{})

func Debugf

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

func DisableTerminal

func DisableTerminal()

func Error

func Error(args ...interface{})

func ErrorTimes

func ErrorTimes(times int, args ...interface{})

func Errorf

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

func Info

func Info(args ...interface{})

func InfoTimes

func InfoTimes(times int, args ...interface{})

func Infof

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

func Panic

func Panic(args ...interface{})

func SetAppName

func SetAppName(name string)

func SetLogFile

func SetLogFile(name string)

func SetOutService

func SetOutService(ip string, port int)

func SetOutServiceInfo2Panic

func SetOutServiceInfo2Panic()

func SetOutServiceWarn2Panic

func SetOutServiceWarn2Panic()

func Warn

func Warn(args ...interface{})

func WarnTimes

func WarnTimes(times int, args ...interface{})

func Warnf

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

Types

type Level

type Level int

Jump to

Keyboard shortcuts

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