feedback

package
v0.0.0-...-58c3220 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 4 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 {
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger(engine LoggerEngine) Logger

func (Logger) LogDir

func (l Logger) LogDir(path string, tag string, wrap Wrapper) error

LogDir logs content of each .json file in `path` but wrap it content using Wrapper before. `tag` is used to add extra information to LoggerEngine

type LoggerEngine

type LoggerEngine interface {
	Post(tag string, message interface{}) error
	Close() error
}

type Wrapper

type Wrapper func(content string) (wrappedContent interface{})

Jump to

Keyboard shortcuts

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