@@ -24,15 +24,15 @@ class Config
24
24
*/
25
25
private $ errorLog ;
26
26
/**
27
- * Registers shutdown function for logging PHP runtime fatal errors that the scheduler cannot catch
27
+ * Registers shutdown function for logging PHP errors
28
28
* @var bool
29
29
*/
30
30
private $ logUncaughtErrors ;
31
31
/**
32
- * If true, PHP warnings will be sent to the error channel, otherwise - to the debug channel
32
+ * If true, PHP non-fatal errors will be sent to the error channel, otherwise - to the debug channel
33
33
* @var bool
34
34
*/
35
- private $ logPhpWarningsToError ;
35
+ private $ logWarningsToError ;
36
36
/**
37
37
* Log message formatting string.
38
38
* Available variables: {{task_id}}, {{task_type}}, {{TASK_TYPE}}, {{task_name}}, {{TASK_NAME}},
@@ -109,8 +109,8 @@ class Config
109
109
* @param ?LoggerInterface $logger PSR-3 is a compatible logger. If null - the log will be sent to the STDOUT/STDERR.
110
110
* @param mixed $debugLog False/null - debug log disabled. True - enabled (STDOUT/DEBUG). Or set custom PSR-3 level.
111
111
* @param mixed $errorLog False/null - error log disabled. True - enabled (STDERR/ERROR). Or set custom PSR-3 level.
112
- * @param bool $logUncaughtErrors Registers shutdown function for logging PHP runtime fatal errors.
113
- * @param bool $logPhpWarningsToError If true, PHP warnings will be sent to the error channel, otherwise - to the debug channel.
112
+ * @param bool $logUncaughtErrors Registers shutdown function for logging PHP errors.
113
+ * @param bool $logWarningsToError If true, PHP non-fatal errors will be sent to the error channel, otherwise - to the debug channel
114
114
* @param ?string $logMessageFormat Log message formatting string. Available {{task_id}}, {{task_type}}, {{task_name}},
115
115
* {{message}} and {{task_description}} variables. Lowercase for regular case, uppercase - for forced uppercase.
116
116
* Pass null for default formatting: "[{{task_id}}. {{TASK_TYPE}} '{{task_name}}']: {{message}}".
@@ -133,7 +133,7 @@ public function __construct(
133
133
$ debugLog = false ,
134
134
$ errorLog = true ,
135
135
bool $ logUncaughtErrors = false ,
136
- bool $ logPhpWarningsToError = false ,
136
+ bool $ logWarningsToError = false ,
137
137
?string $ logMessageFormat = null ,
138
138
?int $ maxLogMsgLength = null ,
139
139
?array $ exceptionLogMatching = [],
@@ -151,7 +151,7 @@ public function __construct(
151
151
$ this ->debugLog = $ debugLog ;
152
152
$ this ->errorLog = $ errorLog ;
153
153
$ this ->logUncaughtErrors = $ logUncaughtErrors ;
154
- $ this ->logPhpWarningsToError = $ logPhpWarningsToError ;
154
+ $ this ->logWarningsToError = $ logWarningsToError ;
155
155
$ this ->logMessageFormat = $ logMessageFormat ?? "[{{task_id}}. {{TASK_TYPE}} '{{task_name}}']: {{message}} " ;
156
156
157
157
if ($ maxLogMsgLength !== null && $ maxLogMsgLength <= 0 ) {
@@ -224,7 +224,7 @@ public function getErrorLog()
224
224
}
225
225
226
226
/**
227
- * Registers shutdown function for logging PHP runtime fatal errors that the scheduler cannot catch
227
+ * Registers shutdown function for logging PHP errors
228
228
* @return bool
229
229
*/
230
230
public function getLogUncaughtErrors (): bool
@@ -233,12 +233,12 @@ public function getLogUncaughtErrors(): bool
233
233
}
234
234
235
235
/**
236
- * If true, PHP warnings will be sent to the error channel, otherwise - to the debug channel
236
+ * If true, PHP non-fatal errors will be sent to the error channel, otherwise - to the debug channel
237
237
* @return bool
238
238
*/
239
- public function getLogPhpWarningsToError (): bool
239
+ public function getLogWarningsToError (): bool
240
240
{
241
- return $ this ->logPhpWarningsToError ;
241
+ return $ this ->logWarningsToError ;
242
242
}
243
243
244
244
/**
0 commit comments