public ILogger CreateLogger(string categoryName, bool appendToEnd) { this.logger = new CustomFileLogger(categoryName, appendToEnd); return(logger); }
public void Dispose() { logger?.Close(); logger = null; }
/// <summary> /// Creates a custom logger that writes a specific Log message (generated by CustomFileLogger). /// </summary> /// <param name="categoryName">This is parameter should be provided by the Services Builder.</param> /// <returns></returns> public ILogger CreateLogger(string categoryName) { logger = new CustomFileLogger(categoryName); return(logger); }