jsonlog

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Level

type Level int8
const (
	LevelInfo  Level = iota // 0.
	LevelError              // 1.
	LevelFatal              // 2.
)

func (Level) String

func (l Level) String() string

type Logger

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

func New

func New(out io.Writer, minLevel Level) *Logger

func (*Logger) PrintError

func (logger *Logger) PrintError(err error, properties map[string]string)

func (*Logger) PrintFatal

func (logger *Logger) PrintFatal(err error, properties map[string]string)

func (*Logger) PrintInfo

func (logger *Logger) PrintInfo(message string, properties map[string]string)

func (*Logger) Write

func (logger *Logger) Write(message []byte) (n int, err error)

Jump to

Keyboard shortcuts

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