Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F11785428
D3709.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
974 B
Referenced Files
None
Subscribers
None
D3709.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Sep 22, 22:52 (2 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3006773
Default Alt Text
D3709.diff (974 B)
Attached To
Mode
D3709: Reduce MediaWiki log level to "error" to minimize disk usage
Attached
Detach File
Event Timeline
Log In to Comment