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