Versions in this module Expand all Collapse all v6 v6.0.0 Dec 23, 2020 Changes in this version + const Attempt + const DefMaxQueueSize + const Fail + const KeyAPIPath + const KeyClient + const KeyClusterID + const KeyEvent + const KeyIPAddress + const KeySessionID + const KeyStatus + const KeyUserID + const Success + func NewFileTarget(filter logr.Filter, formatter logr.Formatter, opts FileOptions, maxQSize int) (*target.File, error) + type Audit struct + OnError func(err error) + OnQueueFull func(qname string, maxQueueSize int) bool + func (a *Audit) AddTarget(target logr.Target) + func (a *Audit) Init(maxQueueSize int) + func (a *Audit) Log(level mlog.LogLevel, path string, evt string, status string, userID string, ...) + func (a *Audit) LogRecord(level mlog.LogLevel, rec Record) + func (a *Audit) MakeFilter(level ...mlog.LogLevel) *logr.CustomFilter + func (a *Audit) MakeJSONFormatter() *format.JSON + func (a *Audit) Shutdown() + type FileOptions target.FileOptions + type FuncMetaTypeConv func(val interface{}) (newVal interface{}, converted bool) + type Meta map[string]interface + type Record struct + APIPath string + Client string + Event string + IPAddress string + Meta Meta + SessionID string + Status string + UserID string + func (rec *Record) AddMeta(name string, val interface{}) + func (rec *Record) AddMetaTypeConverter(f FuncMetaTypeConv) + func (rec *Record) Fail() + func (rec *Record) Success() Other modules containing this package github.com/adacta-ru/mattermost-server/v5