Page MenuHomeDevCentral

D3709.id9596.diff
No OneTemporary

D3709.id9596.diff

diff --git a/src/LogLevel.php b/src/LogLevel.php
new file mode 100644
--- /dev/null
+++ b/src/LogLevel.php
@@ -0,0 +1,19 @@
+<?php
+declare(strict_types=1);
+
+namespace Nasqueron\SAAS\MediaWiki;
+
+/*
+ * Levels should be aligned with monolog library Level enum.
+ */
+
+enum LogLevel: int {
+ case Debug = 100;
+ case Info = 200;
+ case Notice = 250;
+ case Warning = 300;
+ case Error = 400;
+ case Critical = 500;
+ case Alert = 550;
+ case Emergency = 600;
+}
diff --git a/src/WithLog.php b/src/WithLog.php
--- a/src/WithLog.php
+++ b/src/WithLog.php
@@ -49,7 +49,7 @@
'handlers' => [
'stream' => [
'class' => '\\Monolog\\Handler\\StreamHandler',
- 'args' => [ self::getLogPath() ],
+ 'args' => [ self::getLogPath(), LogLevel::Error->value ],
'formatter' => 'line',
],
],

File Metadata

Mime Type
text/plain
Expires
Tue, Sep 23, 14:15 (17 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3006773
Default Alt Text
D3709.id9596.diff (974 B)

Event Timeline