File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -501,6 +501,22 @@ public function sharedContext()
501
501
return $ this ->sharedContext ;
502
502
}
503
503
504
+ /**
505
+ * Flush the log context on all currently resolved channels.
506
+ *
507
+ * @return $this
508
+ */
509
+ public function withoutContext ()
510
+ {
511
+ foreach ($ this ->channels as $ channel ) {
512
+ if (method_exists ($ channel , 'withoutContext ' )) {
513
+ $ channel ->withoutContext ();
514
+ }
515
+ }
516
+
517
+ return $ this ;
518
+ }
519
+
504
520
/**
505
521
* Flush the shared context.
506
522
*
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ protected function registerWorker()
198
198
};
199
199
200
200
$ resetScope = function () use ($ app ) {
201
- if (method_exists ($ app ['log ' ]-> driver () , 'withoutContext ' )) {
201
+ if (method_exists ($ app ['log ' ], 'withoutContext ' )) {
202
202
$ app ['log ' ]->withoutContext ();
203
203
}
204
204
You can’t perform that action at this time.
0 commit comments