File tree 1 file changed +17
-2
lines changed
1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -96,8 +96,8 @@ public function driver($driver = null)
96
96
protected function get ($ name )
97
97
{
98
98
try {
99
- return $ this ->stores [$ name ] ?? with ($ this ->resolve ($ name ), function ($ monolog ) use ($ name ) {
100
- return $ this ->tap ($ name , new Logger ($ monolog , $ this ->app ['events ' ]));
99
+ return $ this ->stores [$ name ] ?? with ($ this ->resolve ($ name ), function ($ logger ) use ($ name ) {
100
+ return $ this ->tap ($ name , new Logger ($ logger , $ this ->app ['events ' ]));
101
101
});
102
102
} catch (Throwable $ e ) {
103
103
return tap ($ this ->createEmergencyLogger (), function ($ logger ) use ($ e ) {
@@ -200,6 +200,21 @@ protected function createCustomDriver(array $config)
200
200
return $ this ->app ->make ($ config ['via ' ])->__invoke ($ config );
201
201
}
202
202
203
+ /**
204
+ * Create a aggregate log driver instance.
205
+ *
206
+ * @param array $config
207
+ * @return \Psr\Log\LoggerInterface
208
+ */
209
+ protected function createAggregateDriver (array $ config )
210
+ {
211
+ $ handlers = collect ($ config ['channels ' ])->flatMap (function ($ channel ) {
212
+ return $ this ->channel ($ channel )->getHandlers ();
213
+ })->all ();
214
+
215
+ return new Monolog ($ this ->parseChannel ($ config ), $ handlers );
216
+ }
217
+
203
218
/**
204
219
* Create an instance of the single file log driver.
205
220
*
You can’t perform that action at this time.
0 commit comments