logger

package
v0.0.0-...-22ca071 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Fatal = "fatal"
	Error = "error"
	Info  = "info"
	Debug = "debug"

	ErrMsg   = "Error Message"
	TraceMsg = "Stack Trace"

	E_Nil         = "This variable is nil"
	E_WrongData   = "This do not correct data"
	E_TooManyData = "There are too many data"
	E_MakeHash    = "Can not make hash string"

	E_M_FindEntireCol   = "Can not find entire colection : mongo"
	E_M_FindCol         = "Can not find colection : mongo"
	E_M_Upsert          = "Can not upsert data : mongo"
	E_M_Insert          = "Can not insert data : mongo"
	E_M_Update          = "Can not update data : mongo"
	E_M_RegisterThread  = "Can not register thread score : mongo"
	E_M_RegisterUser    = "Can not register user : mongo"
	E_M_SearchPhotoTask = "Can not search picture task : mongo"

	I_M_GetPage     = "Get page data : mongo"
	I_M_PostPage    = "Post page data : mongo"
	I_M_RegisterCol = "Register collection data : mongo"

	E_R_PostPage    = "Can not post page data : route"
	E_R_RegisterCol = "Can not register collection data : route"
	E_R_Upsert      = "Can not upsert data : route"
	E_R_WriteJSON   = "Can not write JSON : route"
	E_R_PingMsg     = "Can not ping message : route"
	E_R_Upgrader    = "Can not upgrader webdocket : route"
)

Variables

This section is empty.

Functions

func ErrToStr

func ErrToStr(err error) string

func GitRemoteCodeUrl

func GitRemoteCodeUrl(trace map[string]string) string

func Output

func Output(field logrus.Fields, msg string, level string)

func PutErr

func PutErr(err error, trace map[string]string, msg string, obj interface{})

func PutFata

func PutFata(err error, trace map[string]string, msg string, obj interface{})

func PutInfo

func PutInfo(msg string, obj1 interface{}, obj2 interface{})

func Sprintf

func Sprintf(obj interface{}) string

func SprintfType

func SprintfType(obj interface{}) string

func Trace

func Trace() map[string]string

func TraceToStr

func TraceToStr(trace map[string]string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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