Share via


Trace Log Categories

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Windows SharePoint Services provides an interface through which developers can expose Windows SharePoint Services to the categories to assign to trace log messages. Windows SharePoint Services looks for services on the server farm that implement this interface. If a service implements the interface, Windows SharePoint Services queries the service for the categories defined for the service, and displays those categories in the Central Administration user interface. Administrators can then use the Central Administration user interface to manage and update those categories.

IDiagnosticsManager Interface

To expose an application's trace log categories to Windows SharePoint Services, that service must implement the IDiagnosticsManager interface. This interface represents the trace log category collection, and includes methods for retrieving, updating, and resetting individual trace log categories.

IDiagnosticsLevel Interface

Each trace log category is represented by an IDiagnosticsLevel class. This class includes methods that return the ID and name of the category, as well as whether the category is hidden. It also includes methods that enable you to set the event and trace severity of the trace log category.

See Also

Concepts

Trace Logs

Writing to the Trace Log

Trace Log Example