Skip to content

A free open source IT asset/license management system

Added admin log file/driver for auditing

snipe4d6563343a35
diff --git a/config/logging.php b/config/logging.php
index 79f6a05ff7..d3e33972f8 100644
--- a/config/logging.php
+++ b/config/logging.php
@@ -111,6 +111,20 @@ $config = [
'path' => storage_path('logs/scim.log'),
],
+ // Settings-admin audit trail. Wizard-style config screens (LDAP
+ // wizard test runs, etc.) write here instead of `action_logs`
+ // so operational messages that reference server URLs, base DNs,
+ // and other bind-shape info stay in files only the server
+ // operator can read. Separate file so log rotation stays sane
+ // and grepping doesn't have to filter out the noisier default
+ // laravel.log.
+ 'admin' => [
+ 'driver' => 'daily',
+ 'path' => storage_path('logs/admin.log'),
+ 'level' => env('LOG_LEVEL', 'info'),
+ 'days' => 30,
+ ],
+
'rollbar' => [
'driver' => 'monolog',
'handler' => MonologHandler::class,