예제 #1
0
 /**
  * Set the logger instance.
  *
  * @param object $logger
  */
 static function set_logger($logger)
 {
     self::$logger = $logger;
 }
예제 #2
0
파일: Terminus.php 프로젝트: RazzYoshi/cli
 /**
  * Set the logger instance to a class property
  *
  * @param array $config Configuration options to send to the logger
  * @return void
  */
 public static function setLogger($config)
 {
     self::$logger = new Logger(compact('config'));
 }