Documentation ¶
Index ¶
- type APIConfig
- type APILog
- func (l APILog) Debug(class, method, requestID, ip, action, result, message string)
- func (l APILog) Error(class, method, requestID, ip, action, result, message string)
- func (l APILog) Info(class, method, requestID, ip, action, result, message string)
- func (l APILog) Warn(class, method, requestID, ip, action, result, message string)
- type LogConfig
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIConfig ¶
type APIConfig struct {
LogConfig *LogConfig
}
APIConfig represents the API configuration
func GetAPIConfig ¶
func GetAPIConfig() *APIConfig
GetAPIConfig return the instance of the APIConfig
type APILog ¶
type APILog struct {
// contains filtered or unexported fields
}
APILog is the API logger
type Logger ¶
type Logger interface { // Debug write a debug log level Debug(class, method, requestID, ip, action, result, message string) // Info write a info log level Info(class, method, requestID, ip, action, result, message string) // Warn write a warning log level Warn(class, method, requestID, ip, action, result, message string) // Error write a error log level Error(class, method, requestID, ip, action, result, message string) }
Logger is a interface to log object
Click to show internal directories.
Click to hide internal directories.