Exemple #1
0
 /**
  * log memory usage
  *
  * @param string $info
  */
 public static function mem($info = '')
 {
     if (!static::$_enabled) {
         return;
     }
     $txt = round(memory_get_usage() / 1024 / 1024, 2) . ' Mo / ' . round(memory_get_usage(true) / 1024 / 1024, 2) . ' Mo';
     $txt .= $info != '' ? ' (' . $info . ')' : '';
     firelog($txt, 'MemoryUsage', 'info');
 }
Exemple #2
0
 /**
  * Logs with an arbitrary level.
  *
  * @param mixed $level
  * @param string $message
  * @param array $context
  *
  * @return void
  */
 public function log($level, $message, array $context = array())
 {
     firelog($message);
 }
Exemple #3
0
 /**
  * @param mixed $log
  * @param string $level @see \Bixev\LightLogger\LoggerLevel::LEVEL_ ...
  */
 public function log($log, $level = null)
 {
     firelog($log);
 }