log

package
v0.0.0-...-bc5e729 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2017 License: MPL-2.0 Imports: 3 Imported by: 9

README

log

log for oncekv system logging, using logrus;

Currently just put log into standard output.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Biz = logrus.New()

Biz for logic logger

View Source
var DB = logrus.New()

DB for database error logger

View Source
var Internal = logrus.New()

Internal for internal logic error

View Source
var ThirdPartyServiceLogger = logrus.New()

ThirdPartyServiceLogger for service error logger

Functions

func DBError

func DBError(sql interface{}, err error, message interface{})

DBError log databse error

func InternalError

func InternalError(funcName string, message interface{})

InternalError for logic error

func LibError

func LibError(lib string, message interface{})

LibError for lib error

func ThirdPartyServiceError

func ThirdPartyServiceError(thirdPartyService string, err error, message interface{}, params ...string)

ThirdPartyServiceError for third-party service error

Types

This section is empty.

Jump to

Keyboard shortcuts

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