Wrapper function for nlog - assigning log level
问题 I want to have a custom log class, which then injects its properties to nlog Logger. The class should initialize nlog target and config , and then others can use it without the need to know those details. public interface ILogger { void Log(LogEntry entry); } public enum LoggingEventType { Debug, Information, Warning, Error, Fatal}; public class LogEntry { public readonly LoggingEventType Level; public readonly string Message; public readonly Exception Ex; public LogEntry(LoggingEventType