golog

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

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

Go to latest
Published: May 31, 2019 License: MIT Imports: 8 Imported by: 0

README

klog

log for go with zerolog

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cfg

type Cfg struct {
	Debug    bool     `json:"debug,omitempty" yml:"debug" toml:"debug"`
	Service  string   `json:"service,omitempty" yml:"service" toml:"service"`
	Version  string   `json:"version,omitempty" yml:"version" toml:"version"`
	LogLevel string   `json:"loglevel,omitempty" yml:"loglevel" toml:"loglevel"`
	Hooks    []string `json:"hooks,omitempty" yml:"hooks" toml:"hooks"`
	Writer   []map[string]interface{}
}

func GetCfg

func GetCfg() *Cfg

func New

func New() *Cfg

func (*Cfg) Init

func (t *Cfg) Init()

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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