Log Event Method

VB provides a LOG event method to write error messages to a log file. It has two properties - LogPath and LogMode. The VB help says that these two properties are read-only at run time. If so, how do we use this method ? Kindly explain with an example.
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

Éric MoreauConnect With a Mentor Senior .Net ConsultantCommented:
These properties are initialized by the StartLogging method.

Take note that event logging will not work in the VB IDE. You have to compile it and run the executable to see your statements working!
All Courses

From novice to tech pro — start learning today.