Beispiel #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();
 }
Beispiel #2
0
 public static String DumpObject(Object obj, ObjectDumperSettings settings)
 {
     var builder = new TextBuilder();
     DumpObject(obj, builder, settings ?? ObjectDumperSettings.Default);
     return builder.ToString();
 }
Beispiel #3
0
 public static String DumpObject(Object obj)
 {
     var builder = new TextBuilder();
     DumpObject(obj, builder);
     return builder.ToString();
 }