logger

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

View Source
const (
	NodeLogFormatJSON  = NodeLogFormat("json")
	NodeLogFormatPlain = NodeLogFormat("plain")
)

Variables

This section is empty.

Functions

func NewNodeWriter

func NewNodeWriter(w io.Writer, config NodeWriterConfig) io.Writer

Types

type LogAnnotator

type LogAnnotator func(io.Writer, string, bool) io.Writer

type LogWriter

type LogWriter func(string, LogAnnotator) (io.Writer, error)

func NewLogWriter

func NewLogWriter(config LogWriterConfig) (LogWriter, error)

type LogWriterConfig

type LogWriterConfig struct {
	LogFile     string
	JsonLogFile string
}

type NodeLogFormat

type NodeLogFormat string

type NodeWriterConfig

type NodeWriterConfig struct {
	Format          NodeLogFormat
	PartitionName   string
	NodeIndex       int
	NodeName        string
	NodeNamePadding int
	Colorize        bool
}

Jump to

Keyboard shortcuts

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