title: Print to screen and Log at the same time
body: <p>I'm using .Net CORE and i'm writing a program that print logs to screen and also save the logs into  a file .
  So my entire code full with lines like this:</p>
  
  <pre><code>        Console.WriteLine("starting app");
          Log.Debug("stating app");
          if (args.Length &lt; 2)
          {
              Log.Debug("got less than 2 arguments");
              Console.WriteLine("Should be run with arguments:");
              Console.WriteLine("&lt;DirecotryPath&gt; &lt;OutputPath&gt;");
              return;
  </code></pre>
  
  <p>Is there is away to prevent this duplication in my code? 
  Thank you</p>