logger

package
v0.0.0-...-18c6e13 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Count        int
	Capacity     int
	Sent         int32
	Consumed     int32
	sync.RWMutex // protect the log
	log.Log
	// contains filtered or unexported fields
}

Logger ...

func NewLogger

func NewLogger() *Logger

NewLogger ...

func (*Logger) ClearQueue

func (l *Logger) ClearQueue()

ClearQueue clear data queue of the queue

func (*Logger) LogBuffer

func (l *Logger) LogBuffer() chan log.Log

func (*Logger) SetLastFlag

func (l *Logger) SetLastFlag()

SetLastFlag set last flag of the log, which means logging will end

Jump to

Keyboard shortcuts

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