logscope

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogScope

type LogScope struct {
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger(options *ScopeOptions) *LogScope

func (*LogScope) Flush

func (ls *LogScope) Flush()

func (*LogScope) GetLogEntries

func (ls *LogScope) GetLogEntries(from time.Time, limit int) []*logrus.Entry

func (*LogScope) GetLogEntryCount

func (ls *LogScope) GetLogEntryCount() int

func (*LogScope) GetLogger

func (ls *LogScope) GetLogger() *logrus.Logger

type ScopeOptions

type ScopeOptions struct {
	Parent     logrus.FieldLogger
	BufferSize uint64
}

Jump to

Keyboard shortcuts

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