Created
February 21, 2017 19:53
-
-
Save optical/b622c05af9eb50fc8e6fb523661f97a4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SelfLog.Enable(Console.WriteLine); | |
using (LogContext.PushProperty("SomeProperty", "SomeValue")) { | |
// Works, but also raises a self log message | |
Log.Information("Lets look at a property {SomeProperty}"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment