mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-31 00:40:15 +02:00
Convert level/levelName to enums (#1656)
This commit is contained in:
@@ -33,7 +33,7 @@ use Monolog\Handler\StreamHandler;
|
||||
|
||||
// create a log channel
|
||||
$log = new Logger('name');
|
||||
$log->pushHandler(new StreamHandler('path/to/your.log', Logger::WARNING));
|
||||
$log->pushHandler(new StreamHandler('path/to/your.log', Level::Warning));
|
||||
|
||||
// add records to the log
|
||||
$log->warning('Foo');
|
||||
@@ -50,7 +50,7 @@ $log->error('Bar');
|
||||
|
||||
## Support Monolog Financially
|
||||
|
||||
Get supported Monolog and help fund the project with the [Tidelift Subscription](https://tidelift.com/subscription/pkg/packagist-monolog-monolog?utm_source=packagist-monolog-monolog&utm_medium=referral&utm_campaign=enterprise) or via [GitHub sponsorship](https://github.com/sponsors/Seldaek).
|
||||
Get supported Monolog and help fund the project with the [Tidelift Subscription](https://tidelift.com/subscription/pkg/packagist-monolog-monolog?utm_source=packagist-monolog-monolog&utm_medium=referral&utm_campaign=enterprise) or via [GitHub sponsorship](https://github.com/sponsors/Seldaek).
|
||||
|
||||
Tidelift delivers commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use.
|
||||
|
||||
|
Reference in New Issue
Block a user