/// <summary> /// Initializes logger with protection /// </summary> protected virtual void InitializeLogger() { var logger = new ProtectedLoggerConfiguration { DateFormat = "yyy-MM-dd", DateTimeFormat = "HH:mm:ss", LogCleanupTemplate = "ppp-games-*-*-*.log", LogDirectory = "Logs", LogTemplate = "ppp-games-{0}.log", MessagesInBuffer = 10 }; protectedLogger = ServiceLocator.Current.GetInstance <IProtectedLogger>(); protectedLogger.Initialize(logger); protectedLogger.CleanLogs(); protectedLogger.StartLogging(); }
public void Initialize(ProtectedLoggerConfiguration configuration) { }