View Full Version : XML format?
Dan Hacker
12-Feb-2010, 03:15 PM
Just got up on Eurekalog 5.1.12 (yeah, a little behind the curve) and noticed the option for sending XML. I use the OnExceptionNotify event to grab the logtext and send it to a webservice (not using Eurekalog support for sending). Is there any way to obtain the logtext in an XML format?
Thanks,
Dan Hacker
Alex
13-Feb-2010, 03:28 PM
Hi,
I think that there is no way to get ready-to-use XML, but you can form it "on request" in the handler.
Create instance of TLogFile (ELogManager.pas) and add current log to it. Then use SaveXMLCopy method or XML property to generate XML from log file.
Dan Hacker
15-Feb-2010, 10:09 PM
Thanks, Alex.
In case anyone is interested, here is the code that worked for me (called from within OnExceptionNotify): Log := TLogFile.Create('',True);
Log.Append(EurekaExceptionRecord.LogText,1);
XMLLog := Log.Items_XML[0];
Dan
Hi,
I think that there is no way to get ready-to-use XML, but you can form it "on request" in the handler.
Create instance of TLogFile (ELogManager.pas) and add current log to it.
Then use SaveXMLCopy method or XML property to generate XML from log file.
--
Alex
Best regards...
Alexander - *EurekaLog Support Team*
Alex
16-Feb-2010, 07:01 AM
Hi,
Thank you for the feedback!
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.