logger

package
v0.0.0-...-e1b7d04 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: GPL-3.0 Imports: 13 Imported by: 1

README

log plugin can log to console or log to file.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	F    *os.File
	File string
	Lock *sync.Mutex
	Tags map[string]string
}

func NewLogger

func NewLogger(tags map[string]string, file string) (*Logger, error)

func (*Logger) Close

func (p *Logger) Close() error

func (*Logger) Reset

func (p *Logger) Reset() error

func (*Logger) TouchBrook

func (p *Logger) TouchBrook()

func (*Logger) WatchReset

func (p *Logger) WatchReset()

Jump to

Keyboard shortcuts

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