Versions in this module Expand all Collapse all v0 v0.0.7 Feb 25, 2024 Changes in this version + func NewLogger(environment string, vendor Vendor, zapLogger *zap.Logger) *logger + type Logger interface + Error func(ctx context.Context, err error, data any) + func GetLoggerFromContext(ctx context.Context) Logger + type Metadata struct + Data any + LogLevel logLevel + Message string + Request Request + type Vendor interface + Send func(ctx context.Context, payload []byte) v0.0.6 Feb 14, 2024 Changes in this version + func AddLoggerInContext(ctx *gin.Context) + func SetLogger(ctx *gin.Context) + type EventMetadata struct + DataType string + EventCode int + LogLevel string + Message string + RequestID string + Type string + UserAgent string + type GlobalEvent struct + Data *EventMetadata + type GlobalLog struct + Data *LogMetadata + func GetLogger(ctx context.Context) *GlobalLog + type Log interface + SendErrorLog func(ctx context.Context, err error) + SendEvent func(ctx context.Context, eventCode int, message string) + type LogMetadata struct + LogLevel string + Message string + Request Request + type Request struct + Endpoint string + Headers http.Header + Host string + IP string + Method string + RequestID string + UserAgent string + type Splunk struct + func New(host string, token string, assync bool) *Splunk + func (s *Splunk) SendErrorLog(ctx context.Context, err error) + func (s *Splunk) SendEvent(ctx context.Context, eventCode int, message string)