An EventLog object you can use to write to the event log. It is already initialized to an object with the correct Source and Log properties set.
[Visual Basic] Overridable Public ReadOnly Property EventLog As EventLog [C#] public EventLog EventLog {virtual get;} [C++] public: __property virtual EventLog* get_EventLog(); [JScript] public function get EventLog() : EventLog;
ServiceBase Class | ServiceBase Members | System.ServiceProcess Namespace