public static function error($msg) { if (self::$flags & self::ERROR) { call_user_func(Logger::$writer, self::ERROR, $msg); } }