Article ID: 161283 - Last Review: May 13, 2003 - Revision: 2.0 INFO: Default Filename for Text File Error Log: VBEVENTS.LOGThis article was previously published under Q161283 On This PageSUMMARY
When you invoke the LogEvent Method in your Visual Basic program running
under Windows 95 and Windows 98, a text file is created with the filename
VBEVENTS.LOG in the Windows directory if you leave the LogPath Property
blank. The LogPath property allows you to set the path and filename of a
log file.
MORE INFORMATION
You can log events in your Visual Basic program by using the LogEvent
method. If your program is running under Windows NT, the specified events
are logged in the NT Event Log. Under Windows 95 and Windows 98, the
specified events are logged to a text file, vbevents.log. You can change the location and the file name of the event log by setting the LogPath property to the path and location of your choice and setting the mode argument of the LogMode property to vbLogToFile. You cannot set the LogPath Property directly. Instead, you must use the StartLogging Method to set the LogPath Property. The LogEvents and StartLogging Methods work only in a compiled EXE. They do not work in the Microsoft Visual Basic IDE. For more information, refer to the LogMode Property topic of the online Help. Step-by-Step Example
REFERENCES
For more information about event logging, see the following topics in the
Online Help:
APPLIES TO
| Article Translations
|
Back to the top
