fadiramzi99/hr-logger
Laravel HR Logger package for tracking HR-related actions and events in your app. Provides structured logging of employee activities, audit-friendly records, and configurable logging channels to help monitor changes, approvals, and operational history.
hr-logger package is a lightweight HTTP request logger, ideal for debugging, auditing, or monitoring API traffic in Laravel applications. It fits well in architectures where:
log channel configuration).app/Http/Kernel.php).RequestLogged event) for post-processing (e.g., storing logs in a database)..env or config files).except in config.single queue channel).single file driver). May need to:
maxFiles in logging.php).Authorization headers, payloads) be redacted?NOASSERTION) acceptable for your use case?app/Http/Kernel.php under the web or api middleware group.config/hr-logger.php (if provided) or override defaults in config/logging.php.RequestLogged events for custom logic (e.g., database storage).single, stack, syslog).logs table for querying.composer require fadiramzi99/hr-logger.storage/logs/laravel.log).php artisan vendor:publish --tag=hr-logger-config.config/hr-logger.php to:
debug, info).log_body: false).Kernel.php:
protected $middleware = [
\Fadiramzi\HrLogger\Middleware\LogRequests::class,
];
api middleware group.log channel or logrotate).file extension is enabled for file logging.TrimStrings, ConvertEmptyStringsToNull) in the stack.5xx errors).monolog handler).composer.json to avoid surprises.HR_LOGGER_REDACT_HEADERS).maxFiles in logging.php).s3 log channel.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Package incompatibility | Logs stop working | Pin version, fork if needed. |
| Disk full (file logging) | Logs fail silently | Set |
How can I help you explore Laravel packages today?