/** * 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'); }
/** * 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); }
/** * @param mixed $log * @param string $level @see \Bixev\LightLogger\LoggerLevel::LEVEL_ ... */ public function log($log, $level = null) { firelog($log); }