Ejemplo n.º 1
0
 public function __construct($msg, $code, $level = 1)
 {
     switch ($level) {
         case 1:
             MyPhpLog::notice($msg);
         case 2:
             MyPhpLog::warning($msg);
         default:
             MyPhpLog::fatal($msg);
     }
     parent::__construct();
 }