logger

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2021 License: MIT Imports: 13 Imported by: 5

Documentation

Index

Constants

View Source
const (
	RED     = 1
	GREEN   = 2
	YELLOW  = 3
	BLUE    = 4
	MAGENTA = 5
	CYAN    = 6
	WHITE   = 7
)

Variables

View Source
var GopherTimeRunning map[string]time.Time
View Source
var RunningGophers []string
View Source
var TotalSystemGoRoutines int32
View Source
var VerboseBornAndDeadGophers bool

Functions

func GoRoutineLogger

func GoRoutineLogger(fn func(), routineDesc string)

func GoRoutineLoggerWithId

func GoRoutineLoggerWithId(fn func(), routineDesc string, Id string)

func Log

func Log(dataValues ...interface{})

func Message

func Message(message string, c Color)

func Tail

func Tail(path string, length int64) (data string)

func TimeTrack

func TimeTrack(start time.Time, name string) (log string)

func TimeTrackQuery

func TimeTrackQuery(start time.Time, name string, collection *mgo.Collection, m bson.M, q *mgo.Query) (log string)

func ViewRunningGophers

func ViewRunningGophers()

Types

type Color

type Color int

Jump to

Keyboard shortcuts

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