Ejemplo n.º 1
0
 /**
  * Forget all logged records
  */
 public static function reset()
 {
     self::$records = array();
 }
Ejemplo n.º 2
0
 /**
  * Forget all logged records
  */
 public static function reset()
 {
     self::$records = [];
 }
 /**
  * {@inheritDoc}
  */
 protected function write(array $record)
 {
     // Accumulate records
     self::$records[] = $record;
     // Register shutdown handler if not already done
     if (PHP_SAPI !== 'cli' && !self::$initialized) {
         self::$initialized = true;
         register_shutdown_function(array('Monolog\\Handler\\BrowserConsoleHandler', 'send'));
     }
 }