Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see>
 ///         <cref>InstanceLogger</cref>
 ///     </see>
 ///     class.
 /// </summary>
 /// <param name="loggerName">Name of the logger.</param>
 public LogEvent(string loggerName)
 {
     log4net.Config.XmlConfigurator.Configure();
     _logger = EventIDLogManager.GetLogger(loggerName);
 }
Пример #2
0
 /// <summary>
 /// static constructor loads log4net configuration from default web or app config
 /// </summary>
 public LogEvent()
 {
     log4net.Config.XmlConfigurator.Configure();
     _logger = EventIDLogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
 }