/// <summary> /// Initializes a new instance of the <see cref="NLogLogger" /> class. /// </summary> /// <param name="nameSpace">The name space.</param> public NLogLogger(string nameSpace) { _innerLogger = LogManager.GetCurrentClassLogger(); _nameSpace = nameSpace; }
/// <summary> /// Get a logger, a type parameter is actually recommended, otherwise this method will return a logger for Core.Logging.Logger class, the actual logs will be impacted. /// </summary> /// <returns>NLog.Logger</returns> public static NLog.Logger GetLogger() { return(LogManager.GetCurrentClassLogger()); }