@@ -68,7 +68,10 @@ protected function configureHandlers(Application $app, Writer $log)
68
68
*/
69
69
protected function configureSingleHandler (Application $ app , Writer $ log )
70
70
{
71
- $ log ->useFiles ($ app ->storagePath ().'/logs/laravel.log ' );
71
+ $ log ->useFiles (
72
+ $ app ->storagePath ().'/logs/laravel.log ' ,
73
+ $ app ->make ('config ' )->get ('app.log_level ' , 'debug ' )
74
+ );
72
75
}
73
76
74
77
/**
@@ -80,9 +83,11 @@ protected function configureSingleHandler(Application $app, Writer $log)
80
83
*/
81
84
protected function configureDailyHandler (Application $ app , Writer $ log )
82
85
{
86
+ $ config = $ app ->make ('config ' );
83
87
$ log ->useDailyFiles (
84
88
$ app ->storagePath ().'/logs/laravel.log ' ,
85
- $ app ->make ('config ' )->get ('app.log_max_files ' , 5 )
89
+ $ config ->get ('app.log_max_files ' , 5 ),
90
+ $ config ->get ('app.log_level ' , 'debug ' )
86
91
);
87
92
}
88
93
@@ -95,7 +100,10 @@ protected function configureDailyHandler(Application $app, Writer $log)
95
100
*/
96
101
protected function configureSyslogHandler (Application $ app , Writer $ log )
97
102
{
98
- $ log ->useSyslog ('laravel ' );
103
+ $ log ->useSyslog (
104
+ 'laravel ' ,
105
+ $ app ->make ('config ' )->get ('app.log_level ' , 'debug ' )
106
+ );
99
107
}
100
108
101
109
/**
@@ -107,6 +115,6 @@ protected function configureSyslogHandler(Application $app, Writer $log)
107
115
*/
108
116
protected function configureErrorlogHandler (Application $ app , Writer $ log )
109
117
{
110
- $ log ->useErrorLog ();
118
+ $ log ->useErrorLog ($ app -> make ( ' config ' )-> get ( ' app.log_level ' , ' debug ' ) );
111
119
}
112
120
}
0 commit comments