https://github.com/springtimesoft/silverstripe-audit-logger
A module to add security audit log file to Silverstripe
https://github.com/springtimesoft/silverstripe-audit-logger
Last synced: 6 months ago
JSON representation
A module to add security audit log file to Silverstripe
- Host: GitHub
- URL: https://github.com/springtimesoft/silverstripe-audit-logger
- Owner: springtimesoft
- License: mit
- Created: 2023-12-19T22:38:36.000Z (over 2 years ago)
- Default Branch: develop
- Last Pushed: 2024-05-02T03:54:29.000Z (about 2 years ago)
- Last Synced: 2025-08-28T08:07:21.303Z (10 months ago)
- Language: PHP
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Silverstripe Audit Logger
This module leverages much of the functionality of [silverstripe/auditor](https://github.com/silverstripe/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](#configuration) below.
## Installation
```shell
composer require springtimesoft/silverstripe-audit-logger
```
## Requirements
- Silverstripe ^5
- [silverstripe/auditor](https://github.com/silverstripe/silverstripe-auditor) (automatically imported)
## Usage
Please refer to [silverstripe/auditor](https://github.com/silverstripe/silverstripe-auditor) for usage.
## Configuration
The following default values can be updated via your yaml configuration:
```yaml
Springtimesoft\AuditLogger\AuditFactory:
auditLog: ../public/assets/audit.log
logLevel: info
keepForDays: 30
```