log

package
v0.2.97 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEBUG logType = 1
	INFO          = 2
)

Variables

This section is empty.

Functions

func Debugf

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

func Infof

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

func NewDebugLogger

func NewDebugLogger() *typeLogger

func NewInfoLogger

func NewInfoLogger() *typeLogger

func SetLogger

func SetLogger(peerswapLogger PeerswapLogger)

Types

type PeerswapLogger

type PeerswapLogger interface {
	Infof(format string, v ...interface{})
	Debugf(format string, v ...interface{})
}

Jump to

Keyboard shortcuts

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