title: How do I do logging in C# without using 3rd party libraries?
body: <p>I would like to implement logging in my application, but would rather not use any outside frameworks like log4net.</p>
  
  <p>So I would like to do something like DOS's <a href="https://ss64.com/nt/echo.html" rel="noreferrer">echo</a> to a file. What is the most effective way to do it?</p>
  
  <p>Is there a way to log unhandled exceptions logged without using an outside framework?</p>