コード例 #1
0
 public Logger(ILoggerFactory loggerFactory, string host, ILogWriter categoryWriter, string category, ILogWriter traceWriter, string traceId)
 {
     this.Host           = host;
     this.CategoryWriter = categoryWriter;
     if (traceWriter != null)
     {
         this.TraceWriter = traceWriter.AddLogWriter(categoryWriter);
     }
     this.TraceId       = traceId;
     this.LoggerFactory = loggerFactory;
     this.Category      = category;
 }