NLog.Targets.FileTarget ft = new NLog.Targets.FileTarget(); ft.FileName ="FicheroDeLog.txt"; ft.ArchiveEvery = FileArchivePeriod.Month; NLog.Config.SimpleConfigurator.ConfigureForTargetLogging(ft, LogLevel.Trace); LogManager.Configuration.AddTarget("File",ft); Logger logger = LogManager.GetCurrentClassLogger();
No hay comentarios:
Publicar un comentario