/// <summary> /// Configures the connection to output log messages to the <see cref="ConsoleLogger" />. /// </summary> /// <returns></returns> public StreamStoreConnectionSettingsBuilder UseConsoleLogger() { _log = new ConsoleLogger(); return(this); }
public StreamStoreConnectionSettingsBuilder UseLazyLogger(string loggerName) { Ensure.NotNull(loggerName, nameof(loggerName)); _log = LogManager.GetLogger(loggerName); return(this); }
/// <summary> /// Configures the connection to output log messages to the given <see cref="ILogger" />. /// You should implement this interface using another library such as NLog, seriLog or log4net. /// </summary> /// <param name="logger">The <see cref="ILogger"/> to use.</param> /// <returns></returns> public StreamStoreConnectionSettingsBuilder UseCustomLogger(ILogger logger) { Ensure.NotNull(logger, nameof(logger)); _log = logger; return(this); }