示例#1
0
 /**
  * Initialize the class
  */
 public static function _init()
 {
     // Make sure that the file system structure stays intact. Also, create the $monolog instance.
     parent::_init();
     // create the streamhandler, and activate the handler
     $stream = static::$monolog->popHandler();
     $stream->setFormatter(new \Monolog\Formatter\CustomJsonFormatter());
     static::$monolog->pushHandler($stream);
     // Processors
     static::$monolog->pushProcessor(new \Monolog\Processor\MemoryUsageProcessor());
     static::$monolog->pushProcessor(new \Monolog\Processor\ProcessIdProcessor());
     static::$monolog->pushProcessor(new \Monolog\Processor\WebProcessor());
     static::$monolog->pushProcessor(new \Monolog\Processor\BitAPIHubProcessor());
 }
 public static function _init()
 {
     \Fluent\Autoloader::register();
     parent::_init();
 }