Example #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();
 }
Example #2
0
 public static function notice($str)
 {
     $inst = MyPhpLog::getInstance();
     return $inst->write($str);
 }