formatter

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package formatter provides wrappers to the interface Formatter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Null added in v0.6.0

func Null() iface.Formatter

Null returns the null Formatter.

Types

type Func added in v0.5.0

type Func func(record *iface.Record) []byte

The Func type is a function wrapper to the interface Formatter. Do NOT call any method of the Logger within the function, or it may deadlock.

func (Func) Format added in v0.5.0

func (fn Func) Format(record *iface.Record) []byte

Format calls the underlying function. It implements the interface Formatter.

Directories

Path Synopsis
internal
Package json implements a json formatter which implements the Formatter.
Package json implements a json formatter which implements the Formatter.
Package text implements a text formatter which implements the Formatter.
Package text implements a text formatter which implements the Formatter.

Jump to

Keyboard shortcuts

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