예제 #1
0
 /**
  * Prepare config and logger
  *
  * @param string  $message  Message of this exception
  * @param string  $file     File path and name where the exception has taken place
  * @param int     $lineNo   Line number where the exception has taken place
  */
 public function __construct($message, $file, $lineNo)
 {
     parent::__construct($message);
     $logger = Helper::getLogger(Logger::ALERT);
     $logger->alert('\'' . $message . '\' in file \'' . $file . '\', at line ' . $lineNo);
 }
예제 #2
0
 /**
  * Prepare config and logger
  *
  * @param string  $message  Message of this exception
  * @param string  $file     File path and name where the exception has taken place
  * @param int     $lineNo   Line number where the exception has taken place
  */
 public function __construct($message, $file, $lineNo)
 {
     parent::__construct($message);
     $logger = Helper::getLogger(Logger::EMERGENCY);
     $logger->emergency('\'' . $message . '\' in file \'' . $file . '\', at line ' . $lineNo);
 }
예제 #3
0
 /**
  * Prepare config and logger
  *
  * @param string  $message  Message of this exception
  * @param string  $file     File path and name where the exception has taken place
  * @param int     $lineNo   Line number where the exception has taken place
  */
 public function __construct($message, $file, $lineNo)
 {
     parent::__construct($message);
     $logger = Helper::getLogger(Logger::WARNING);
     $logger->warning('\'' . $message . '\' in file \'' . $file . '\', at line ' . $lineNo);
 }
예제 #4
0
 /**
  * Prepare config and logger
  *
  * @param string  $message  Message of this exception
  * @param string  $file     File path and name where the exception has taken place
  * @param int     $lineNo   Line number where the exception has taken place
  */
 public function __construct($message, $file, $lineNo)
 {
     parent::__construct($message);
     $logger = Helper::getLogger(Logger::CRITICAL);
     $logger->critical('\'' . $message . '\' in file \'' . $file . '\', at line ' . $lineNo);
 }