Forum Discussion
YMinaev
Staff
13 years agoHi Martin,
If you need to parse the contents of the current log, the only way to do this is by exporting the log to XML. The current log is not in the project's log collection at run-time, it is in memory, and TC generates its contents. That's why it is not accessible via Project.Logs.
As for OnLogError, I'm not quite sure why you would need to parse the entire log in its handler because all the information on the error currently posted is available there, and it allows you to process all errors as they occur without missing them. Do you need to do something specific which requires exporting the log in OnLogError? And what do you do there (maybe, there's a more efficient way to do the same)?
If you need to parse the contents of the current log, the only way to do this is by exporting the log to XML. The current log is not in the project's log collection at run-time, it is in memory, and TC generates its contents. That's why it is not accessible via Project.Logs.
As for OnLogError, I'm not quite sure why you would need to parse the entire log in its handler because all the information on the error currently posted is available there, and it allows you to process all errors as they occur without missing them. Do you need to do something specific which requires exporting the log in OnLogError? And what do you do there (maybe, there's a more efficient way to do the same)?