logger

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: May 6, 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

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

func Provider added in v0.2.10

func Provider(cfg CallerCfg) (db *Client)

Jump to

Keyboard shortcuts

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