예제 #1
0
 /// <inheritdoc />
 public override void Write(ref TraceEntry entry)
 {
     if (IsTraceEnabled(entry.TracerName, entry.TraceLevel))
     {
         try
         {
             InnerEntryWriter.Write(ref entry);
         }
         catch (Exception excp)
         {
             if (1 == Interlocked.Increment(ref _countWritingExceptions))
             {
                 // TODO: Replace this with status polling
                 if (_setupTracerFactory != null)
                 {
                     _setupTracerFactory.TracerFor(this).Error(excp, "At least one exception occurred while writing trace entyrs to " + InnerEntryWriter);
                 }
             }
         }
     }
 }
예제 #2
0
 public virtual void Write(ref TEntry entry)
 {
     InnerEntryWriter.Write(ref entry);
 }