jsonlogger

package module
v0.0.0-...-0e1f424 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() logz.Logger

Types

type Logger

type Logger struct {
	*log.Logger
	// contains filtered or unexported fields
}

Logger is a simple implementation that outputs the provided map[string]interface{} as json. Its backend is the log package of the standard library.

func (*Logger) Debug

func (l *Logger) Debug(data map[string]interface{})

func (*Logger) Err

func (l *Logger) Err(data map[string]interface{})

func (*Logger) Info

func (l *Logger) Info(data map[string]interface{})

func (*Logger) Log

func (l *Logger) Log(level logz.LogLevel, data map[string]interface{})

func (*Logger) SetLevel

func (l *Logger) SetLevel(level logz.LogLevel) logz.Logger

func (*Logger) Trace

func (l *Logger) Trace(data map[string]interface{})

func (*Logger) Warn

func (l *Logger) Warn(data map[string]interface{})

Jump to

Keyboard shortcuts

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