+void mp::Package::log(const char *module, int level, const char *fmt, ...) const
+{
+ char buf[4096];
+ va_list ap;
+ va_start(ap, fmt);
+
+ yaz_vsnprintf(buf, sizeof(buf)-30, fmt, ap);
+
+ std::ostringstream os;
+
+ os << module << " " << *this << " " << buf;
+
+ va_end(ap);
+ yaz_log(level, "%s", os.str().c_str());
+}