File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1414namespace LaravelZero \Framework \Components \Log ;
1515
1616use Illuminate \Contracts \Config \Repository ;
17+ use Illuminate \Contracts \Log \ContextLogProcessor as ContextLogProcessorContract ;
18+ use Illuminate \Log \Context \ContextLogProcessor ;
19+ use Illuminate \Log \LogServiceProvider ;
1720use LaravelZero \Framework \Components \AbstractComponentProvider ;
1821
1922/**
@@ -35,7 +38,10 @@ public function isAvailable(): bool
3538 */
3639 public function register (): void
3740 {
38- $ this ->app ->register (\Illuminate \Log \LogServiceProvider::class);
41+ $ this ->app ->register (LogServiceProvider::class);
42+ if (class_exists (ContextLogProcessor::class)) {
43+ $ this ->app ->bind (ContextLogProcessorContract::class, fn () => new ContextLogProcessor ());
44+ }
3945
4046 /** @var Repository $config */
4147 $ config = $ this ->app ['config ' ];
You can’t perform that action at this time.
0 commit comments