logging

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(path, level string)

Types

type Formatter

type Formatter struct {
	log.TextFormatter
}

func MakeFormatter

func MakeFormatter() (formatter *Formatter)

func (*Formatter) Format

func (f *Formatter) Format(entry *log.Entry) ([]byte, error)

Whole this thing is needed to convert fields that are structs to json format

Jump to

Keyboard shortcuts

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