Skip to content

Conversation

@caleeli
Copy link
Contributor

@caleeli caleeli commented Sep 10, 2025

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')
Log.with.Tenants.mov

Related Tickets & Packages

@caleeli caleeli requested a review from nolanpro September 10, 2025 16:30
@processmaker-sonarqube
Copy link

Quality Gate passed 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

See analysis details on SonarQube

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants