Provides a logging service that logs messages with custom log categories for Glyma search.
상속: SPDiagnosticsServiceBase
예제 #1
0
 public override void FeatureInstalled(SPFeatureReceiverProperties properties)
 {
     base.FeatureInstalled(properties);
     // This call registers the areas and categories of the LoggingService with SharePoint so that they appear in the
     // diagnostic configuration screen in Central Administration.
     GlymaSearchLoggingService service = GlymaSearchLogger.Service;
 }
예제 #2
0
        public override void FeatureUninstalling(SPFeatureReceiverProperties properties)
        {
            base.FeatureUninstalling(properties);
            // Removes the areas and categories of the LoggingService from SharePoint so that they no longer appear in the
            // diagnostic configuration screen in Central Administration.
            GlymaSearchLoggingService service = GlymaSearchLogger.Service;

            if (service != null)
            {
                service.Delete();
            }
        }