log

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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(cfg *config.Config) *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