johndenny
asked on
FileLogTraceListener format timestamp
I m using system.diagnostic tracing, to log info. Somehow it logs the time like this:
2011-09-06 04:52:07Z 1247117878029
What i want something likes this: 2011-09-06 04:52:25,323 (in milliseconds)
How to do that to format to milliseconds? here is the config:
<add name="SampleTrace"
type="Microsoft.VisualBasi c.Logging. FileLogTra ceListener , Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d 50a3a, processorArchitecture=MSIL "
logFileCreationSchedule="D aily"
traceOutputOptions="DateTi me, Timestamp" />
<source name="Test.Config" switchName="Config" switchType="System.Diagnos tics.Sourc eSwitch" >
<listeners>
<add name="SampleTrace" />
</listeners>
</source>
2011-09-06 04:52:07Z 1247117878029
What i want something likes this: 2011-09-06 04:52:25,323 (in milliseconds)
How to do that to format to milliseconds? here is the config:
<add name="SampleTrace"
type="Microsoft.VisualBasi
logFileCreationSchedule="D
traceOutputOptions="DateTi
<source name="Test.Config" switchName="Config" switchType="System.Diagnos
<listeners>
<add name="SampleTrace" />
</listeners>
</source>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.