Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PerformanceLogInterceptor"/> class.
 /// </summary>
 /// <param name="loggerFactory">The logger factory.</param>
 public PerformanceLogInterceptor(ITurkuazLoggerFactory loggerFactory)
 {
     _logger = loggerFactory.GetLogger("PerformanceLog");
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new logger, getting the logger name from the specified type.
 /// </summary>
 /// <param name="type"></param>
 /// <returns></returns>
 public Castle.Core.Logging.ILogger Create(Type type)
 {
     return((Castle.Core.Logging.ILogger)_turkuazLoggerFactory.GetLogger(type));
 }