Help us shape the future of Go! Take the 2026 Go Developer Survey

prolog

package module
v0.0.0-...-ad2c910 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Critical

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

Critical ..

func Debug

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

Debug ...

func FileWrite

func FileWrite(fileName string, flag int, s string) (n int, err error)

FileWrite ..

func Info

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

Info ..

func SetConsoleLevel

func SetConsoleLevel(level TraceLevel)

func SetLogFileName

func SetLogFileName(fileName string, level TraceLevel)

func SetLogSocket

func SetLogSocket(addr string, level TraceLevel)

func SocketWrite

func SocketWrite(serverAddr string, s string) (err error)

SocketWrite ..

func Warning

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

Warning ..

Types

type Logger

type Logger struct {
	Addr      string
	SockLevel TraceLevel

	FilePath  string
	FileLevel TraceLevel

	ConsoleLevel TraceLevel
}

Logger ..

var Log Logger

Log ..

type TraceLevel

type TraceLevel uint8
const (
	LevelDebug TraceLevel = iota
	LevelInfo
	LevelWarning
	LevelCritical
	LevelNone = 0x7F
)

Jump to

Keyboard shortcuts

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