S
semedao
Hi,
how and can I cause the FileLogTraceListener to write the timestamp ,
Callstack etc to the log ?
I mean that it will do it in every Write() , or TraceInformation call
when I tried to add :
traceOutputOptions="ProcessId, DateTime"
I saw that only calling to Trace.TraceError("blabla") will make it !
this is my app.config file:
<system.diagnostics>
<switches>
<add name="TraceSwitchLevel" value = "4" />
</switches>
<trace autoflush="true" indentsize="4">
<listeners>
<add name="FileLog"
type="Microsoft.VisualBasic.Logging.FileLogTraceListener,
Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
BaseFileName="xxx" ReserveDiskSpace="1048576000"
DiskSpaceExhaustedBehavior="DiskSpaceExhaustedOption.DiscardMessages"
IncludeHostName="True" Append="False" initializeData="FileLogWriter"
traceOutputOptions="ProcessId, DateTime"/>
</listeners>
</trace>
</system.diagnostics>
how and can I cause the FileLogTraceListener to write the timestamp ,
Callstack etc to the log ?
I mean that it will do it in every Write() , or TraceInformation call
when I tried to add :
traceOutputOptions="ProcessId, DateTime"
I saw that only calling to Trace.TraceError("blabla") will make it !
this is my app.config file:
<system.diagnostics>
<switches>
<add name="TraceSwitchLevel" value = "4" />
</switches>
<trace autoflush="true" indentsize="4">
<listeners>
<add name="FileLog"
type="Microsoft.VisualBasic.Logging.FileLogTraceListener,
Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
BaseFileName="xxx" ReserveDiskSpace="1048576000"
DiskSpaceExhaustedBehavior="DiskSpaceExhaustedOption.DiscardMessages"
IncludeHostName="True" Append="False" initializeData="FileLogWriter"
traceOutputOptions="ProcessId, DateTime"/>
</listeners>
</trace>
</system.diagnostics>