コード例 #1
0
 public static Log GetLogger(string str)
 {
     return(new Log(LogManager.GetLogger(str)));
 }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 public static Log GetLogger(Type type)
 {
     return(new Log(LogManager.GetLogger(type)));
 }
コード例 #4
0
 /// <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);
 }