title: Indent Log Entries (Log4Net)
body: <p>I'm working on a Web API which requires http requests to be logged to a text file. For Logging, I'm using <strong>Log4Net</strong>.</p>
  
  <p>Coming straight to the point: How can we indent Log entries that are managed by Log4Net? When a Web API receives a request, there are other methods calls involved as well. i.e. from Method A() to Method B(). </p>
  
  <p>My current log file looks like the following screenshot:
  <a href="https://i.stack.imgur.com/C7cNs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C7cNs.png" alt="enter image description here"></a></p>
  
  <p>Could we some how make our log more readable and display them in a manner such as this one:</p>
  
  <ul>
  <li>Datetime Method Name A()
  
  <ul>
  <li>Datetime Method Name B()</li>
  </ul></li>
  </ul>
  
  <p>The most important thing that needs to be kept in mind is that the Method B() can be accessed by some other method C() as well which in that case looks like this:</p>
  
  <ul>
  <li>Datetime Method Name C()
  
  <ul>
  <li>Datetime Method Name B()</li>
  </ul></li>
  </ul>
  
  <p>The only related (some how) links i could find are:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/15927351/how-to-add-indentation-to-multi-line-log-entry-in-log4net">How to add indentation to multi-line log entry in log4net?</a></li>
  <li><a href="https://stackoverflow.com/questions/36195744/how-to-increase-decrease-indenting-when-stepping-in-out-of-methods">How to increase/decrease indenting when stepping in/out of methods?</a></li>
  </ul>
  
  <p>But unfortunately they do not answer my question. </p>