-
-
Notifications
You must be signed in to change notification settings - Fork 450
[Core] add PsrLogger and support RFC 5424 log level #5144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 5 commits
8749071
a66c18a
a7e7ebd
72a4448
9e06542
06a42a5
f400438
0a4d7bf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| <?php | ||
Hanmac marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| /** | ||
| * @copyright For copyright and license information, read the COPYING.txt file. | ||
| * @link /COPYING.txt | ||
| * @license Open Software License (OSL 3.0) | ||
| * @package Mage_Core | ||
| */ | ||
|
|
||
| use Psr\Log\LoggerInterface; | ||
| use Psr\Log\LoggerTrait; | ||
|
|
||
| /** | ||
| * PsrLogger model | ||
| * | ||
Hanmac marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| * @package Mage_Core | ||
| */ | ||
| class Mage_Core_Helper_PsrLogger extends Mage_Core_Helper_Abstract implements LoggerInterface | ||
| { | ||
| use LoggerTrait; | ||
|
|
||
| public function log($level, string|\Stringable $message, array $context = []): void | ||
| { | ||
| Mage::log((string) $message, $level, null, false, $context); | ||
| } | ||
| } | ||
|
Comment on lines
27
to
41
|
||
Uh oh!
There was an error while loading. Please reload this page.