private static void WriteSomeLogs(ILog logTunnel) { using (logTunnel.CreateScope("Starting somthing")) { logTunnel.Info("Test LogEntry {IntValue} {StringValue}", new { IntValue = 5, StringValue = "MyValue", Complex = new ComplexData() { Complex2 = new ComplexData() }, }); logTunnel.Warning("My Warning"); logTunnel.Log("Custom", "Non spesific log title"); logTunnel.Error("Test LogEntry {*}", new { IntValue = 5, StringValue = "MyValue", Complex = new ComplexData() { //ExtraProp = 2, Complex2 = new ComplexDataDerived(), } }); } }