springtimesoft / silverstripe-audit-logger
A module to add security audit log file to Silverstripe
Installs: 58
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 1
Open Issues: 0
Type:silverstripe-vendormodule
Requires
- silverstripe/auditor: ^3.0
This package is auto-updated.
Last update: 2024-12-02 05:12:41 UTC
README
This module leverages much of the functionality of silverstripe/auditor,
however replaces the silverstripe/auditor::AuditLogger
with springtimesoft/silverstripe-audit-logger::AuditLogger
to write
the log to public/assets/audit.log
rather than the system log.
Once a day it will truncate the log automatically to only keep logs from the last 30 days. This can be set to 0
if no
truncation is required. See configuration below.
Installation
composer require springtimesoft/silverstripe-audit-logger
Requirements
- Silverstripe ^5
- silverstripe/auditor (automatically imported)
Usage
Please refer to silverstripe/auditor for usage.
Configuration
The following default values can be updated via your yaml configuration:
Springtimesoft\AuditLogger\AuditFactory: auditLog: ../public/assets/audit.log logLevel: info keepForDays: 30