Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is there a way to get only part of the the iLogic Log file to write out?
I have something like this, but it brings in all of the information for the entire Inventor session. I'd like to run a rule that does stuff, and writes information to the Logger and then saves that out to a file, but I only want to see the Logger information for that rule not the entire Inventor session.
Is there a way to clear the log first, or capture only what happens from one "event" to another, etc
'Start rule ' < do some stuff here > Logger.Info("some info about the stuff that just happened...") ' < do more some stuff here > Logger.Info("some info about the stuff that just happened...") ' < do even more some stuff here > Logger.Info("some info about the stuff that just happened...") 'write out the log file iLogicVb.Automation.LogControl.SaveLogAs("C:\TEMP\iLogic Log Example.txt") 'end rule
I looked at accessing the logger file using the fullfilename, but I wasn't able to do much with that file while Inventor is using it, etc.
iLogicVb.Automation.LogControl.FullFileName
Thanks in advance!
Solved! Go to Solution.