title: Format of Tracing output in System.Diagnostics.TraceSource
body: <p>The following code:</p>
  
  <pre><code>static void Main(string[] args)
  {
      TraceSource ts = new TraceSource("MyApplication");
  
      ts.Switch = new SourceSwitch("MySwitch");
      ts.Switch.Level = SourceLevels.All;
  
      ts.Listeners.Add(new TextWriterTraceListener(Console.Out));
  
      ts.TraceInformation("Hello World");
      Console.ReadKey();
  }
  </code></pre>
  
  <p>generates the following output:</p>
  
  <blockquote>
    <p>MyApplication Information: 0 : Hello World</p>
  </blockquote>
  
  <p>The part "MyApplication Information: 0 :" at the beginning of the trace output is coming from the TraceSource class itself. </p>
  
  <p>However, I need to have a timestamp at the beginning of the line and I would like to change "Information" to "Info" also.</p>
  
  <p>Is there any way to get more freedom in trace output such that I can configure it to be like:</p>
  
  <blockquote>
    <p><strong>13:03:00</strong> - MyApplication <strong>Info</strong>: Hello World</p>
  </blockquote>
  
  <p>I tried for a couple of hours, but with no success. Whatever I do, at the beginning of the output line, there is always this constant predefined "MyApplication Information: 0 : Hello World" output.</p>
  
  <p>MSDN documentation did also not reveal any helpful information.</p>