title: How to log an c++ exception
body: <p>Do you know how can I log the exception ?
  right now the message in the catch statement is printed, but i cannot understood why ins´t Manage.Gere() called sussefully . </p>
  
  <pre><code>try{
      Manager.Gere(&amp;par,&amp;Acc, coman, comando, RunComando, log, &amp;parti, comandosS, RunComandosSuper,true);
  }
  catch (...)
  {
      log("ERROR ENTER GERE*****");
  }
  
  
  Perif::Gere(CString *par, CString *Acc, HANDLE coman, HANDLE comando, HANDLE RunComando, Log &amp;log, CString *parti, HANDLE comandosS, HANDLE RunComandosSuper,bool first)
  {
      log-&gt;LogD("Perif :: Gere Enter****** "); //It doesnt get printed
  
  }
  </code></pre>