logger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2018 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(m M)

Debug logs with debug level

func Error

func Error(m M)

Error logs with error level

func Info

func Info(m M)

Info logs with info level

func Setup

func Setup(dbg bool) (err error)

Setup initialize logger

func Warn

func Warn(m M)

Warn logs with warn level

Types

type M

type M struct {
	Msg string // the message
	DId int    // directive ID
	BId string // backlog ID
	CId uint64 // conn ID
}

M defines the type for log messages

Jump to

Keyboard shortcuts

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