logger

package
v0.0.0-...-3ddb297 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrLogDriverNotFound = errors.New("Dvergr. Log driver not found")
)

Error

Functions

func Get

func Get() (lg iLogger)

Get Must call Set(...)

func JsonIndentFmt

func JsonIndentFmt(data interface{}) (jsIndent string, err error)

JsonIndentFmt format data to json indent for prettier print

func Set

func Set(driver string, name string, enviroment string, level string, color bool, opts ...loggerOption) (err error)

NOTE: Maybe add write to file or send to log store later, options for future use Set ...

Types

type EiLogger

type EiLogger iLogger

EiLogger exported: DO NOT CALL THIS

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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