format

package
v1.4.10 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: Apache-2.0 Imports: 6 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 {
	logrus.Formatter
}

func BracketFormatter

func BracketFormatter() Formatter

func DefaultFormatter

func DefaultFormatter() Formatter

func JSONFormatter

func JSONFormatter() Formatter

func NewFormatterWithType

func NewFormatterWithType(formatType Type) Formatter

func String2Formatter

func String2Formatter(format string) Formatter

func TextFormatter

func TextFormatter() Formatter

type Type

type Type = string
const (
	JSON    Type = "json"
	Text    Type = "text"
	Bracket Type = "bracket"
)

Jump to

Keyboard shortcuts

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