formatter

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter interface {
	Format(r record.Record) string
	FormatBatch(rs []record.Record) string
}

type JsonFormatter added in v1.3.0

type JsonFormatter struct {
}

func NewJsonFormatter added in v1.3.0

func NewJsonFormatter() *JsonFormatter

func (*JsonFormatter) Format added in v1.3.0

func (f *JsonFormatter) Format(r record.Record) string

func (*JsonFormatter) FormatBatch added in v1.3.0

func (f *JsonFormatter) FormatBatch(rs []record.Record) string

type LineFormatter

type LineFormatter struct {
}

func NewLineFormatter

func NewLineFormatter() *LineFormatter

func (*LineFormatter) Format

func (f *LineFormatter) Format(r record.Record) string

func (*LineFormatter) FormatBatch

func (f *LineFormatter) FormatBatch(rs []record.Record) string

Jump to

Keyboard shortcuts

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