How To…Write to the Server Log

Question

“How can write custom information to the server log?”

Solution

Use the Server.LogWriter object to write to the server log. The LogWriter has a WriteEvent method; see the example code for details on using this method.

Download: CustomSeverLogging.zip

Sample Delphi code: