logger

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GyeeProject                 = true // is playing in github.com/yeeco/gyee project
	GlobalLogger *logrus.Logger = nil  // the global logger
	Level                       = logrus.DebugLevel
	Skip                        = 2
	Tag                         = "global"
	LogPosition                 = true
)

Functions

func Debug

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

Types

type P2pLogger

type P2pLogger struct {
	Tag         string // tag string
	Level       uint32 // logger level
	Global      bool   // if global logger applied
	Skip        int    // callers to be skipped
	LogPosition bool   // if caller's file and line needed
	// contains filtered or unexported fields
}

func NewP2pLogger

func NewP2pLogger(tag string, level uint32, isGlobal bool, isPosition bool) *P2pLogger

func (*P2pLogger) Debug

func (p2pLog *P2pLogger) Debug(format string, args ...interface{})

func (*P2pLogger) SetFileRotationHooker

func (p2pLog *P2pLogger) SetFileRotationHooker(path string, count uint)

Jump to

Keyboard shortcuts

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