log

package
v0.9.20 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context map[string]interface{}

type Logger

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

Logger

func New

func New(logPath string, debug bool, fields map[string]interface{}) *Logger

getInstance init logger instance

func (*Logger) Debug

func (logger *Logger) Debug(message string, ctx Context)

Debug

func (*Logger) Error

func (logger *Logger) Error(message string, ctx Context)

Error

func (*Logger) Info

func (logger *Logger) Info(message string, ctx Context)

Info

Jump to

Keyboard shortcuts

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