formatter

package
v0.0.0-...-a601896 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

type CLI struct{}

func NewCLI

func NewCLI(options *CLIOptions) *CLI

func (*CLI) Format

func (cli *CLI) Format(event *Log) (data []byte, err error)

type CLIOptions

type CLIOptions struct {
	Colorize bool
}

type Formatter

type Formatter interface {
	Format(log *Log) ([]byte, error)
}

type Log

type Log struct {
	Message  string
	Level    levels.LevelInt
	Metadata map[string]string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳