mirror of
https://github.com/archtechx/tenancy.git
synced 2026-05-07 04:54:03 +00:00
Preserve filename from central log path in tenant context
This commit is contained in:
parent
9ea3813d28
commit
23ae15a8f1
2 changed files with 44 additions and 1 deletions
|
|
@ -133,7 +133,9 @@ class LogTenancyBootstrapper implements TenancyBootstrapper
|
|||
} elseif (in_array($channel, static::$storagePathChannels)) {
|
||||
// Set storage path channels to use tenant-specific directory (default behavior)
|
||||
// The tenant log will be located at e.g. "storage/tenant{$tenantKey}/logs/laravel.log" (assuming FilesystemTenancyBootstrapper is used before this bootstrapper)
|
||||
$this->config->set("logging.channels.{$channel}.path", storage_path('logs/laravel.log'));
|
||||
$path = $this->config->get("logging.channels.{$channel}.path");
|
||||
|
||||
$this->config->set("logging.channels.{$channel}.path", storage_path('logs/' . ($path ? basename($path) : 'laravel.log')));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue