log

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CmdLogger = log.New() // command line exec time log
	AppLogger = log.New() // application exec time log
)

default logger

Functions

func NewAppLogger

func NewAppLogger(module string) *log.Entry

NewAppLogger is the interface to init a new application logger

func NewCmdLogger

func NewCmdLogger(module string) *log.Entry

NewCmdLogger is the interface to init a new command logger

Types

type CmdFormatter

type CmdFormatter struct{}

CmdFormatter is Command log formatter interface.

func (*CmdFormatter) Format

func (f *CmdFormatter) Format(entry *log.Entry) ([]byte, error)

Format is to format log for print

Jump to

Keyboard shortcuts

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