public function __construct($mode = null) { // Create Chrome logger bridge $this->initLogger(); if (is_null($mode)) { $mode = 'sandbox'; } // // Load App configs $values = $this->loadConfigs($mode); // // Enable debug if ($values['debug']) { Debug::enable(); $this->logger->setMode(true); } \debug::info("Debug mode is " . var_export($values['debug'], true)); parent::__construct($values); $this->registerLogger($this); $this->registerTwig($this); $this->registerBaseService(self::$mode); }
public static function log() { $args = func_get_args(); \Liby\Bundle\Logger\ChromeLogger::log($args); }