processmaker
processmaker copied to clipboard
Add tenant-aware logging functionality
Add tenant-aware logging functionality
- Introduced TenantAwareHandler for handling logs specific to tenants.
- Created TenantAwareLogManager to manage log channels with tenant context.
- Implemented TenantLoggingServiceProvider to bind the custom log manager.
- Updated logging configuration to utilize the new tenant-aware handler.
How to Test
- Test a Log on a tenant web server.
- Test a Log on a web server without without tenant.
- Also on terminal: Test Log without tenant
php artisan tinker
\Log::info('test')
Test Log with tenant
TENTANT=1 php artisan tinker
\Log::info('test')
https://github.com/user-attachments/assets/d8392584-d377-4d42-883a-8dfce3ed3e44
Related Tickets & Packages
- https://processmaker.atlassian.net/browse/FOUR-26245
Quality Gate passed
Issues
0 New issues
0 Fixed issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
No data about Duplication