log

package
v1.3.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Root *zap.SugaredLogger
)

Functions

func InitLog

func InitLog(config *config.Config) error

func NewLogger

func NewLogger(name string) *zap.SugaredLogger

NewLogger create logger by name

Types

type LogService

type LogService struct {
	common.ServiceLifecycle
	// contains filtered or unexported fields
}

func NewLogService

func NewLogService(cfgFile string) *LogService

func (*LogService) Init

func (ls *LogService) Init() error

func (*LogService) Start

func (ls *LogService) Start() error

func (*LogService) Status

func (ls *LogService) Status() int32

func (*LogService) Stop

func (ls *LogService) Stop() error

Jump to

Keyboard shortcuts

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