示例#1
0
 private static void InitializeMtrtLog()
 {
     try
     {
         ServiceLogger.ReadConfiguration();
     }
     finally
     {
         Log log = new Log("MessageTracingService_", new LogHeaderFormatter(ServiceLogger.MessageTracingServiceLogSchema), "Microsoft.ForeFront.Hygiene.MessageTracing");
         log.Configure(ServiceLogger.FileLocation, ServiceLogger.MaximumLogAge, ServiceLogger.MaximumLogDirectorySize, ServiceLogger.MaximumLogFileSize, false, 0, TimeSpan.MaxValue, LogFileRollOver.Hourly);
         ServiceLogger.Initialize(log);
     }
 }