public static Log GetLogger(string str) { return(new Log(LogManager.GetLogger(str))); }
/// <summary> /// Initializes a new instance of the <see cref="Log4NetLogger"/> class. /// </summary> /// <param name="name">A custom name to use for the logger. If null, the type's FullName will be used.</param> public Log4NetLogger(string name) : base(name) { this.log4NetLogger = LogManager.GetLogger(name); }
public static Log GetLogger(Type type) { return(new Log(LogManager.GetLogger(type))); }
/// <summary> /// Initializes a new instance of the <see cref="Log4NetLogger"/> class. /// </summary> /// <param name="type">The type to create a logger for.</param> public Log4NetLogger(Type type) : base(type) { this.log4NetLogger = LogManager.GetLogger(type); }