Esempio n. 1
0
 public void FluentBuilderExamples()
 {
     _myFilter       = null; // TODO
     _myAppender     = Append.To.Console(c => c.Targeting.ConsoleOut());
     _myLayout       = Layout.Using.ExceptionMessage();
     _myErrorHandler = Handle.Errors.OnlyOnce(h => h.PrefixedBy("ERROR"));
     _myRenderer     = null; // TODO
 }
Esempio n. 2
0
 public void FluentBuilderExamples()
 {
     _myFilter = null; // TODO
     _myAppender = Append.To.Console(c => c.Targeting.ConsoleOut());
     _myLayout = Layout.Using.ExceptionMessage();
     _myErrorHandler = Handle.Errors.OnlyOnce(h => h.PrefixedBy("ERROR"));
     _myRenderer = null; // TODO
 }
 /// <summary>
 /// Configures the appender to use the specified error handler definition.
 /// </summary>
 /// <param name="handler">An <see cref="IErrorHandlerDefinition"/> instance.</param>
 /// <returns>The parent <typeparamref name="T"/> instance in the fluent API.</returns>
 public T With(IErrorHandlerDefinition handler)
 {
     _handler = handler;
     return(_parent);
 }