Hi,
i wrote a custom plugin in c# similar to the cluster log plugin to analyze log4net logfiles with the really great LogParser (!).
Sample:
2006-08-08 08:53:35,805 [3324] INFO AppBase.PortalApplicationContext - >> Initialize
2006-08-08 08:53:37,242 [3324] INFO AppBase.PortalApplicationContext - >> PrecompileServices
...
I create records with several fields e.g. method entry/exit time (data type DateTime in c#, with added millisecond part), method name, elapsed time ...
All works fine when i use my plugin in LogParser. But it seems that the millisecond part is missing in my date/time fields:
LogParser -i:COM -iprogid:MarkenLogParser.MarkenLog "SELECT TOP 2 Qualifier, Method, ThreadId,Entry FROM client-log-file.txt"
Qualifier Method ThreadId Entry
-------------------------- ------ -------- -------------------
AppBase.ServicePrecompiler .ctor 3324 08.08.2006 08:53:36
AppBase.ServicePrecompiler .ctor 3324 08.08.2006 08:53:36
Statistics:
-----------
Elements processed: 2
Elements output: 2
Execution time: 0.49 seconds
Does anyone know about this problem or has a workaround solution for me? Is this only a formatting problem has the milliseond part gone when the data is marshalled to COM datatype?
Thanks in advance,
Walter