jsuper
asked on
App.StartLogging method is not working.
When I try to use the App.startlogging method and the app.logevent to log events happening in my application, I get no results. I then began to use the App.logmode property to check to see if the app.startlogging method was working, and it does not seem to be producing any changes. For example...
Using the following code
Msgbox app.logmode
msgbox app.startlogging "Testfile.log", 2
msgbox app.logmode
For each message box, I get a zero result. I figure I'm doing something stupid, but don't have any documentation that mentions error logging.
Using the following code
Msgbox app.logmode
msgbox app.startlogging "Testfile.log", 2
msgbox app.logmode
For each message box, I get a zero result. I figure I'm doing something stupid, but don't have any documentation that mentions error logging.
You need to use the logevent method of the app object.
ASKER
In the original question I mention that I use the logevent method to try to post messages to the log. The problem is that those messages are never getting into the log because my original attempt to turn logging on failed.
Are u using win95 or winNT ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the info... That did the trick!