logger

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register() common.Caller

Types

type CallerCfg

type CallerCfg struct {
	Debug bool
	Level string
	Path  string
}

type Cfg

type Cfg struct {
	Muses struct {
		Logger map[string]CallerCfg `toml:"logger"`
	} `toml:"muses"`
}

type Client

type Client struct {
	*zap.Logger
}

func Caller

func Caller(name string) *Client

func DefaultLogger

func DefaultLogger() *Client

初始化做了判断,肯定存在默认配置

Jump to

Keyboard shortcuts

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