Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // LogAccess is log server request log LogAccess = logrus.New() // LogError is log server error log LogError = logrus.New() )
Functions ¶
func SetLogLevel ¶
SetLogLevel is define log level what you want log level: panic, fatal, error, warn, info and debug
Types ¶
type InputLog ¶
type InputLog struct { ID string Status string Token string Message string Platform int Error error HideToken bool Format string }
InputLog log request
type LogPushEntry ¶
type LogPushEntry struct { ID string `json:"notif_id,omitempty"` Type string `json:"type"` Platform string `json:"platform"` Token string `json:"token"` Message string `json:"message"` Error string `json:"error"` }
LogPushEntry is push response log
func GetLogPushEntry ¶
func GetLogPushEntry(input *InputLog) LogPushEntry
GetLogPushEntry get push data into log structure
Click to show internal directories.
Click to hide internal directories.