Rainbond/event/log_optoins.go

22 lines
643 B
Go
Raw Normal View History

package event
2019-08-22 19:31:46 +08:00
// GetLoggerOption -
func GetLoggerOption(status string) map[string]string {
return map[string]string{"step": "appruntime", "status": status}
}
//GetCallbackLoggerOption get callback logger
func GetCallbackLoggerOption() map[string]string {
return map[string]string{"step": "callback", "status": "failure"}
}
//GetTimeoutLoggerOption get callback logger
func GetTimeoutLoggerOption() map[string]string {
return map[string]string{"step": "callback", "status": "timeout"}
}
//GetLastLoggerOption get last logger
func GetLastLoggerOption() map[string]string {
return map[string]string{"step": "last", "status": "success"}
}