Versions in this module Expand all Collapse all v3 v3.0.1 Nov 3, 2022 Changes in this version + func RegisterLogFormatter(name string, f func(al *AuditLog) ([]byte, error)) + func RegisterLogWriter(name string, writer func() LogWriter) + type AuditLog struct + Messages []AuditMessage + Parts types.AuditLogParts + Transaction AuditTransaction + type AuditMessage struct + Actionset string + Data AuditMessageData + Message string + type AuditMessageData struct + Accuracy int + Data string + File string + ID int + Line int + Maturity int + Msg string + Raw string + Rev string + Severity types.RuleSeverity + Tags []string + Ver string + type AuditTransaction struct + ClientIP string + ClientPort int + HostIP string + HostPort int + ID string + Producer AuditTransactionProducer + Request AuditTransactionRequest + Response AuditTransactionResponse + ServerID string + Timestamp string + UnixTimestamp int64 + type AuditTransactionProducer struct + Connector string + RuleEngine string + Rulesets []string + Server string + Stopwatch string + Version string + type AuditTransactionRequest struct + Body string + Files []AuditTransactionRequestFiles + HTTPVersion string + Headers map[string][]string + Method string + Protocol string + URI string + type AuditTransactionRequestFiles struct + Mime string + Name string + Size int64 + type AuditTransactionResponse struct + Body string + Headers map[string][]string + Protocol string + Status int + type DebugLogger interface + Debug func(message string, args ...interface{}) + Error func(message string, args ...interface{}) + Info func(message string, args ...interface{}) + SetLevel func(level LogLevel) + SetOutput func(w io.WriteCloser) + Trace func(message string, args ...interface{}) + Warn func(message string, args ...interface{}) + type LogFormatter = func(al *AuditLog) ([]byte, error) + func GetLogFormatter(name string) (LogFormatter, error) + type LogLevel int + const LogLevelDebug + const LogLevelError + const LogLevelInfo + const LogLevelTrace + const LogLevelUnknown + const LogLevelWarn + func (level LogLevel) Invalid() bool + func (level LogLevel) String() string + type LogWriter interface + Close func() error + Init func(types.Config) error + Write func(*AuditLog) error + func GetLogWriter(name string) (LogWriter, error)