| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 | 
							- <?php
 
- /**
 
-  * @file
 
-  * Contains the Redis\Logger\Settings class.
 
-  */
 
- namespace Redis\Logger;
 
- /**
 
-  * Class Settings contains the default configuration for the Logger logic.
 
-  *
 
-  * @package Redis\Logger
 
-  */
 
- class Settings {
 
-   const PREFIX = "drupal:watchdog:";
 
-   const REDIS_PATTERN = 'drupal:watchdog:*:[01234567]:*';
 
-   const CHANNEL_REGEX = '/drupal:watchdog:([\w]+):[\d]:.*/';
 
-   const SEVERITY_REGEX = '/drupal:watchdog:[\w]+:([\d]):.*/';
 
-   const SCAN_BATCH_SIZE = 100;
 
-   const ENTRIES_PER_PAGE = 50;
 
-   /**
 
-    * @return string[int]
 
-    */
 
-   public static function Levels() {
 
-     return watchdog_severity_levels();
 
-   }
 
-   public static function getChannelRegex() {
 
-     return static::CHANNEL_REGEX;
 
-   }
 
-   public static function getEntriesPerPage($requested = 0) {
 
-     return $requested ?: static::ENTRIES_PER_PAGE;
 
-   }
 
-   public static function getPrefix() {
 
-     return static::PREFIX;
 
-   }
 
-   public static function getRedisPattern() {
 
-     return static::REDIS_PATTERN;
 
-   }
 
-   public static function getScanBatchSize() {
 
-     return static::SCAN_BATCH_SIZE;
 
-   }
 
-   public static function getSeverityRegex() {
 
-     return static::SEVERITY_REGEX;
 
-   }
 
- }
 
 
  |