log

package
v0.0.0-...-40e59ab Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(msg string, err error, fields ...Field)

func Info

func Info(msg string, fields ...Field)

func Warn

func Warn(msg string, fields ...Field)

Types

type Field

type Field func() (k string, v interface{})

func Int

func Int(name string, value int) Field

func Int64

func Int64(name string, value int64) Field

func Interface

func Interface(name string, value interface{}) Field

func String

func String(name string, value string) Field

type Logger

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

func (*Logger) Write

func (s *Logger) Write(level string, msg string, fields ...Field)

Jump to

Keyboard shortcuts

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