formatter

package
v1.9.13 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IFormatter

type IFormatter = processor.IProcessor

IFormatter specifies what a Formatter does.

func JSON

func JSON() IFormatter

JSON is a JSON formatter. It automatically adds: - Component - Level - Message - Output - Tags - Timestamp (RFC3339). - Fields.

func JSONPretty added in v1.9.0

func JSONPretty() IFormatter

JSONPretty is a prettified-JSON formatter. It automatically adds: - Component - Level - Message - Output - Tags - Timestamp (RFC3339). - Fields.

func Text

func Text() IFormatter

Text is a text formatter. It automatically adds: - Component - Level - Message - Output - Timestamp (RFC3339). - Fields.

Jump to

Keyboard shortcuts

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