Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuditLoggerFromConfig ¶
func AuditLoggerFromConfig(ctx context.Context, cfg config.Auditlog, ch <-chan interface{}, log log.Logger)
AuditLoggerFromConfig will start a new AuditLogger generated from the config
func StartAuditLogger ¶
func StartAuditLogger(ctx context.Context, ch <-chan interface{}, log log.Logger, marshaller Marshaller, logto ...Log)
StartAuditLogger will block. run in seperate go routine
Types ¶
type Log ¶
type Log func([]byte)
Log is used to log to different outputs
func WriteToFile ¶
WriteToFile returns a Log function writing to a file
type Marshaller ¶
Marshaller is used to marshal events
Click to show internal directories.
Click to hide internal directories.