@@ -126,6 +126,7 @@ public function critical($message, array $context = [])
126
126
*/
127
127
public function error ($ message , array $ context = [])
128
128
{
129
+ $ context = $ this ->addExceptionToContext ($ message , $ context );
129
130
$ this ->getLogger ()->error ($ message , $ context );
130
131
}
131
132
@@ -134,6 +135,7 @@ public function error($message, array $context = [])
134
135
*/
135
136
public function warning ($ message , array $ context = [])
136
137
{
138
+ $ context = $ this ->addExceptionToContext ($ message , $ context );
137
139
$ this ->getLogger ()->warning ($ message , $ context );
138
140
}
139
141
@@ -142,6 +144,7 @@ public function warning($message, array $context = [])
142
144
*/
143
145
public function notice ($ message , array $ context = [])
144
146
{
147
+ $ context = $ this ->addExceptionToContext ($ message , $ context );
145
148
$ this ->getLogger ()->notice ($ message , $ context );
146
149
}
147
150
@@ -150,6 +153,7 @@ public function notice($message, array $context = [])
150
153
*/
151
154
public function info ($ message , array $ context = [])
152
155
{
156
+ $ context = $ this ->addExceptionToContext ($ message , $ context );
153
157
$ this ->getLogger ()->info ($ message , $ context );
154
158
}
155
159
@@ -158,6 +162,7 @@ public function info($message, array $context = [])
158
162
*/
159
163
public function debug ($ message , array $ context = [])
160
164
{
165
+ $ context = $ this ->addExceptionToContext ($ message , $ context );
161
166
$ this ->getLogger ()->debug ($ message , $ context );
162
167
}
163
168
@@ -166,6 +171,7 @@ public function debug($message, array $context = [])
166
171
*/
167
172
public function log ($ level , $ message , array $ context = [])
168
173
{
174
+ $ context = $ this ->addExceptionToContext ($ message , $ context );
169
175
$ this ->getLogger ()->log ($ level , $ message , $ context );
170
176
}
171
177
0 commit comments