Logging
A Windows Media Server logging plug-in is a specialized type of an event notification plug-in. It traps event notices raised by the server, searches the appropriate contexts for information generated by the events, parses the information, and appends it to a log. Although most logging plug-ins write information to a text file, other delivery methods are possible. For example, a logging plug-in can send statistics to a SQL server or append them to the Windows Event Viewer.
A logging plug-in can trap either the WMS_EVENT_LOG or the WMS_EVENT_REMOTE_CACHE_LOG events. These are raised when the server receives a client log and copies information from the log into the WMS_COMMAND_CONTEXT_BODY value of the command context. The logging plug-in must retrieve the string from WMS_COMMAND_CONTEXT_BODY, parse it, and write the parsed information to a log. For more information, see Creating Logging Plug-ins.
A logging plug-in can be enabled for the entire server or for individual publishing points. If a logging plug-in is enabled for a publishing point, the server sends only the plug-in event notices specific to the publishing point.