public NLogTests(NLogConfiguration configuration = null) { factory = LoggerBuilders.BuildNLogFactory(configuration ?? new NLogConfiguration { KeepFileOpen = true }); logger = factory.GetLogger(nameof(IAuditLogger)); }
public Log4NetTests(Log4NetConfiguration configuration = null) { Repository = LoggerBuilders.BuildLog4Net(configuration ?? new Log4NetConfiguration { InstanceName = $"{Guid.NewGuid()}", KeepFileOpen = true }); logger = log4net.LogManager.GetLogger(Repository, typeof(IAuditLogger)); }
public SerilogTests(SerilogConfiguration configuration = null) { factory = LoggerBuilders.BuildSerilogLogFactory(configuration); logger = factory.ForContext <IAuditLogger>(); }