This project is read-only.

No timestamp in logfiles

Topics: Technical Questions
Jan 12, 2009 at 7:19 PM
The entries in the logfiles (mse_runtime.txt,mse_catalog.txt) have no timestamp
Jan 16, 2009 at 6:45 PM
Since we use the default TextWriterTraceListener in .Net to log to the files, you can turn this on by updating the trace listener in the app.config file. 

<add initializeData="c:\temp\logs\mse_catalog.txt" type="System.Diagnostics.TextWriterTraceListener" name="txt" traceOutputOptions="DateTime"/>


Note the addition of the traceOutputOptions attribute.

You'll then get two lines for each entry like the following:

mseTraceSrc Information: 0 : Starting Microsoft (R) Managed Services Engine Catalog Server...
mseTraceSrc Information: 0 : MSE Service Catalog adding endpoint address net.pipe://localhost/ServiceCatalog/NotificationService over netNamedPipeBinding