Ejemplo n.º 1
0
 public string Format(LoggerEvent loggerEvent)
 {
     var textBuilder = new TextBuilder();
     textBuilder
         .Line("EventType: " + loggerEvent.EventType);
     LoggingUtils.Format(textBuilder, loggerEvent.Properties);
     LoggingUtils.AddSeparator(textBuilder);
     return textBuilder.ToString();
 }
Ejemplo n.º 2
0
 public static String DumpObject(Object obj, ObjectDumperSettings settings)
 {
     var builder = new TextBuilder();
     DumpObject(obj, builder, settings ?? ObjectDumperSettings.Default);
     return builder.ToString();
 }
Ejemplo n.º 3
0
 public static String DumpObject(Object obj)
 {
     var builder = new TextBuilder();
     DumpObject(obj, builder);
     return builder.ToString();
 }