mirror of
https://github.com/idanoo/php-resque
synced 2025-07-04 23:22:19 +00:00
2.0.3 (2022-09-12)
- Update composer packages - Added WoodpeckerCI tests - Updated links in composer package - Stricter typing
This commit is contained in:
parent
f9a22e7b8a
commit
05cae402b5
21 changed files with 215 additions and 524 deletions
|
@ -14,7 +14,7 @@ class Log extends \Psr\Log\AbstractLogger
|
|||
{
|
||||
public $logLevel;
|
||||
|
||||
public function __construct($logLevel = "warning")
|
||||
public function __construct($logLevel = 'warning')
|
||||
{
|
||||
$this->logLevel = strtolower($logLevel);
|
||||
}
|
||||
|
@ -30,14 +30,14 @@ class Log extends \Psr\Log\AbstractLogger
|
|||
public function log($level, $message, array $context = [])
|
||||
{
|
||||
$logLevels = [
|
||||
"emergency",
|
||||
"alert",
|
||||
"critical",
|
||||
"error",
|
||||
"warning",
|
||||
"notice",
|
||||
"info",
|
||||
"debug",
|
||||
'emergency',
|
||||
'alert',
|
||||
'critical',
|
||||
'error',
|
||||
'warning',
|
||||
'notice',
|
||||
'info',
|
||||
'debug',
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue