json

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const SimpleTimeFormat = "2006-01-02 15:04:05"

Variables

This section is empty.

Functions

func WithTimeFormat

func WithTimeFormat(timeFormat string) monolog.FormatterOpt

WithTimeFormat todo: support time format

Types

type Formatter

type Formatter struct {
	// contains filtered or unexported fields
}

func NewFormatter

func NewFormatter(opts ...monolog.FormatterOpt) *Formatter

func (*Formatter) Format

func (f *Formatter) Format(record *monolog.Record) string

Jump to

Keyboard shortcuts

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