Why doesn't trace write timestamp?
- From: "Brett Romero" <account@xxxxxxxxx>
- Date: 9 Apr 2006 20:29:28 -0700
I have this in an app.config file:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.diagnostics>
<trace autoflush="true" indentsize="2">
<listeners>
<add name="myListener" traceOutputOptions="Timestamp"
type="System.Diagnostics.TextWriterTraceListener"
initializeData="C:\TestConsole\MyListener.log"/>
</listeners>
</trace>
</system.diagnostics>
</configuration>
The code I'm using to write is this:
Debug.WriteLine("Hello config file.");
I just want to output variable values but also would like a time stamp
appended with every .Write or .WriteLine. First, what is the above
timestamp option doing (this came from intellisense) and how do I get
the behavior I'm looking for?
Thanks,
Brett
.
- Follow-Ups:
- Re: Why doesn't trace write timestamp?
- From: Jon Skeet [C# MVP]
- Re: Why doesn't trace write timestamp?
- Prev by Date: Some basic session state questions
- Next by Date: first & last row in datagrid
- Previous by thread: Some basic session state questions
- Next by thread: Re: Why doesn't trace write timestamp?
- Index(es):
Relevant Pages
|