log

package module
v0.0.0-...-d61d359 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 3 Imported by: 18

README

log-go

The logger based on lorg and structured-logger-go, main goal of that package is decreasing amount of spaghetti code in microservices.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	*structured.Logger
}

func New

func New(debug bool, trace bool, traceFile string) *Logger

func (*Logger) NewChild

func (logger *Logger) NewChild() *Logger

func (*Logger) NewChildWithPrefix

func (logger *Logger) NewChildWithPrefix(prefix string) *Logger

func (*Logger) Println

func (logger *Logger) Println(v ...interface{})

func (*Logger) TraceJSON

func (logger *Logger) TraceJSON(obj interface{}) (encoded string)

Jump to

Keyboard shortcuts

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