/// <summary> /// Adds the <see cref="NUnitTestContextLogConsumer"/> instance that uses NUnit.Framework.TestContext class for logging. /// </summary> /// <param name="builder">The builder.</param> /// <returns>The <see cref="AtataContextBuilder{ILogConsumer}"/> instance.</returns> public static AtataContextBuilder <ILogConsumer> AddNUnitTestContextLogging(this AtataContextBuilder builder) { return(builder.AddLogConsumer <ILogConsumer>(new NUnitTestContextLogConsumer())); }
/// <summary> /// Adds the <see cref="NLogConsumer"/> instance that uses NLog.Logger class for logging. /// </summary> /// <param name="builder">The builder.</param> /// <param name="loggerName">Name of the logger.</param> /// <returns>The <see cref="AtataContextBuilder{ILogConsumer}"/> instance.</returns> public static AtataContextBuilder <ILogConsumer> AddNLogLogging(this AtataContextBuilder builder, string loggerName = null) { return(builder.AddLogConsumer <ILogConsumer>(new NLogConsumer(loggerName))); }
/// <summary> /// Adds the <see cref="DebugLogConsumer"/> instance that uses <see cref="Debug"/> class for logging. /// </summary> /// <param name="builder">The builder.</param> /// <returns>The <see cref="AtataContextBuilder{ILogConsumer}"/> instance.</returns> public static AtataContextBuilder <ILogConsumer> AddDebugLogging(this AtataContextBuilder builder) { return(builder.AddLogConsumer <ILogConsumer>(new DebugLogConsumer())); }