Browse Source

added logLevels options

CauseFX 4 years ago
parent
commit
f54b068c70
1 changed files with 38 additions and 0 deletions
  1. 38 0
      api/functions/option-functions.php

+ 38 - 0
api/functions/option-functions.php

@@ -407,6 +407,44 @@ trait OptionsFunction
 		return $formattedValues;
 	}
 	
+	public function logLevels()
+	{
+		return [
+			[
+				'name' => 'Debug',
+				'value' => 'DEBUG'
+			],
+			[
+				'name' => 'Info',
+				'value' => 'INFO'
+			],
+			[
+				'name' => 'Notice',
+				'value' => 'NOTICE'
+			],
+			[
+				'name' => 'Warning',
+				'value' => 'WARNING'
+			],
+			[
+				'name' => 'Error',
+				'value' => 'ERROR'
+			],
+			[
+				'name' => 'Critical',
+				'value' => 'CRITICAL'
+			],
+			[
+				'name' => 'Alert',
+				'value' => 'ALERT'
+			],
+			[
+				'name' => 'Emergency',
+				'value' => 'EMERGENCY'
+			]
+		];
+	}
+	
 	public function calendarLocaleOptions()
 	{
 		return [