mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-09 11:18:10 +00:00
Configurable audit logging for #4074
This commit is contained in:
@@ -52,6 +52,11 @@ LOG_CHANNEL=stack
|
|||||||
# nothing will get logged, ever.
|
# nothing will get logged, ever.
|
||||||
APP_LOG_LEVEL=notice
|
APP_LOG_LEVEL=notice
|
||||||
|
|
||||||
|
# Audit log level.
|
||||||
|
# set to "emergency" if you dont want to store audit logs.
|
||||||
|
# leave on info otherwise.
|
||||||
|
AUDIT_LOG_LEVEL=info
|
||||||
|
|
||||||
# Database credentials. Make sure the database exists. I recommend a dedicated user for Firefly III
|
# Database credentials. Make sure the database exists. I recommend a dedicated user for Firefly III
|
||||||
# For other database types, please see the FAQ: https://docs.firefly-iii.org/support/faq
|
# For other database types, please see the FAQ: https://docs.firefly-iii.org/support/faq
|
||||||
# If you use Docker or similar, you can set these variables from a file by appending them with _FILE
|
# If you use Docker or similar, you can set these variables from a file by appending them with _FILE
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ return [
|
|||||||
],
|
],
|
||||||
'audit' => [
|
'audit' => [
|
||||||
'driver' => 'stack',
|
'driver' => 'stack',
|
||||||
'channels' => ['daily_audit', 'stdout_daily'],
|
'channels' => ['audit_daily', 'audit_stdout'],
|
||||||
],
|
],
|
||||||
'single' => [
|
'single' => [
|
||||||
'driver' => 'single',
|
'driver' => 'single',
|
||||||
@@ -81,18 +81,18 @@ return [
|
|||||||
'level' => envNonEmpty('APP_LOG_LEVEL', 'info'),
|
'level' => envNonEmpty('APP_LOG_LEVEL', 'info'),
|
||||||
'days' => 7,
|
'days' => 7,
|
||||||
],
|
],
|
||||||
'daily_audit' => [
|
'audit_daily' => [
|
||||||
'driver' => 'daily',
|
'driver' => 'daily',
|
||||||
'path' => storage_path('logs/ff3-audit.log'),
|
'path' => storage_path('logs/ff3-audit.log'),
|
||||||
'tap' => [AuditLogger::class],
|
'tap' => [AuditLogger::class],
|
||||||
'level' => 'info',
|
'level' => envNonEmpty('AUDIT_LOG_LEVEL', 'info'),
|
||||||
'days' => 90,
|
'days' => 90,
|
||||||
],
|
],
|
||||||
'stdout_daily' => [
|
'audit_stdout' => [
|
||||||
'driver' => 'single',
|
'driver' => 'single',
|
||||||
'path' => 'php://stdout',
|
'path' => 'php://stdout',
|
||||||
'tap' => [AuditLogger::class],
|
'tap' => [AuditLogger::class],
|
||||||
'level' => 'info',
|
'level' => envNonEmpty('APP_LOG_LEVEL', 'info'),
|
||||||
],
|
],
|
||||||
'dailytest' => [
|
'dailytest' => [
|
||||||
'driver' => 'daily',
|
'driver' => 'daily',
|
||||||
|
|||||||
Reference in New Issue
Block a user