logplugin

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DebugLineLength = int64(1000)

Functions

This section is empty.

Types

type LogPlugin

type LogPlugin interface {
	LogLine(in string)
	Close(err error)
}

type LogPluginFunc

type LogPluginFunc func(line string)

func (LogPluginFunc) Close

func (f LogPluginFunc) Close(_ error)

func (LogPluginFunc) LogLine

func (f LogPluginFunc) LogLine(line string)

type ToConsoleLogPlugin

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

ToConsoleLogPlugin takes a line, and if it's not a DMLOG line or if we are actively debugging deep mind, will print the line to the standard output

func NewToConsoleLogPlugin

func NewToConsoleLogPlugin(debugDeepMind bool) *ToConsoleLogPlugin

func (*ToConsoleLogPlugin) Close

func (p *ToConsoleLogPlugin) Close(_ error)

func (*ToConsoleLogPlugin) DebugDeepMind

func (p *ToConsoleLogPlugin) DebugDeepMind(enabled bool)

func (*ToConsoleLogPlugin) LogLine

func (p *ToConsoleLogPlugin) LogLine(in string)

type ToZapLogPlugin

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

ToConsoleLogPlugin takes a line, and if it's not a DMLOG line or if we are actively debugging deep mind, will print the line to the standard output

func NewToZapLogPlugin

func NewToZapLogPlugin(logger *zap.Logger, debugDeepMind bool) *ToZapLogPlugin

func (*ToZapLogPlugin) Close

func (p *ToZapLogPlugin) Close(_ error)

func (*ToZapLogPlugin) DebugDeepMind

func (p *ToZapLogPlugin) DebugDeepMind(enabled bool)

func (*ToZapLogPlugin) LogLine

func (p *ToZapLogPlugin) LogLine(in string)

Jump to

Keyboard shortcuts

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