using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Serialization;
public static void Main()
var settings = new JsonSerializerSettings();
settings.Formatting = Formatting.Indented;
settings.ContractResolver = new DefaultContractResolver ()
IgnoreSerializableInterface = true
LoggingConfiguration cfg = new LoggingConfiguration();
ConsoleTarget console = new ConsoleTarget("console");
console.Layout = "${longdate} ${uppercase:${level}} ${logger:shortName=true} ${message} ${exception:format=ToString}";
cfg.LoggingRules.Add(new LoggingRule("*", LogLevel.Debug, console));
Console.WriteLine(JsonConvert.SerializeObject(cfg, settings));