title: Is it good practice to catch exception, log and throw the exception again?
body: <p>For the purpose of logging, I would like to catch an exception. But since I would also need to throw the exception, I would then throw the exception again. For example, I would do this in C# as below:</p>
  
  <pre><code>try
  {
      //exception-prone code block here
  }
  catch(Exception ex)
  {
     Logger.Log(ex);
     throw new Exception(ex);
  }
  </code></pre>
  
  <p>Now I am curious is this the best way for the purpose of logging? Suggestions please.</p>