public function initialize()
 {
     $this->setConfig("output", "php://stderr");
     parent::initialize();
 }
Beispiel #2
0
 /**
  * Configures the global Logger instance
  */
 protected function configureLoggers()
 {
     $loggers = array();
     foreach ($this->extractConfig('logging') as $name => $config) {
         $logger = LoggerBase::factory($name);
         $logger->configure((array) $config);
         $logger->initialize();
         $logKey = isset($config['name']) ? $config['name'] : $name;
         $loggers[$logKey] = $logger;
     }
     if (Strata::isBundledServer()) {
         $logger = LoggerBase::factory('Console');
         $logger->initialize();
         $loggers['StrataConsole'] = $logger;
     }
     $this->setConfig('runtime.loggers', $loggers);
 }