writer

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FILE represents file log writer
	FILE = "FILE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LogWriter

type LogWriter interface {
	SetName(name string)
	GetName() string
	GetType() Type
	Write(buff *buffer.Buffer)
	Run()
	Close()
}

LogWriter is the interface of log writer, used to write log to somewhere

func NewFileWriter

func NewFileWriter(name, fileName string) (wr LogWriter, err error)

NewFileWriter creates a new file log writer

type Type

type Type string

Type is log writer type

Jump to

Keyboard shortcuts

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