Versions in this module Expand all Collapse all v5 v5.22.0 Apr 4, 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) + func (a *Audit) AddTarget(target logr.Target) + func (a *Audit) Init(maxQueueSize int) + func (a *Audit) Log(level Level, path string, evt string, status string, userID string, ...) + func (a *Audit) LogRecord(level Level, rec Record) + func (a *Audit) MakeFilter(level ...Level) *logr.CustomFilter + func (a *Audit) MakeJSONFormatter() *format.JSON + func (a *Audit) Shutdown() + type FileOptions target.FileOptions + type Level logr.Level + 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) Fail() + func (rec *Record) Success() + type SyslogParams struct + Cert string + Insecure bool + Raddr string + Tag string + type SyslogTLS struct + func NewSyslogTLSTarget(filter logr.Filter, formatter logr.Formatter, params *SyslogParams, ...) (*SyslogTLS, error) + func (s *SyslogTLS) Shutdown(ctx context.Context) error + func (s *SyslogTLS) String() string + func (s *SyslogTLS) Write(rec *logr.LogRec) error