logger
import "github.com/nickrucinski/cloverapi/internal/db/logger"
Index
func LogError
func LogError(api_error API_Error)
type API\_Error
type API_Error struct {
Route string `json:"route"`
Method string `json:"method"`
StatusCode int `json:"status_code"`
ErrorMessage string `json:"error_message"`
ClientIP string `json:"client_ip"`
UserAgent string `json:"user_agent"`
RequestPath string `json:"request_path"`
}
func GetAllLogs
func GetAllLogs() ([]API_Error, error)
Generated by gomarkdoc