FILE * f; const char * name = NULL; va_list a;  if (!m_gpg) return; name = m_gpg->getLogFile (); if (!name || strlen (name) < 3) return; f = fopen (name, "a+b"); if (!f) return; va_start (a, fmt); vfprintf (f, fmt, a); va_end (a); fclose (f);
if (m_gpg) { va_list a;  va_start (a, fmt); m_gpg->logDebug (fmt, a); va_end (a); }
ExchLogInfo (const char * fmt, ...){    FILE * f;    const char * name = NULL;    va_list a;    if (!m_gpg)	return;    name = m_gpg->getLogFile ();    if (!name || strlen (name) < 3)		return;    f = fopen (name, "a+b");    if (!f)	return;    va_start (a, fmt);    vfprintf (f, fmt, a);    va_end (a);    fclose (f);}