Last active
October 31, 2015 14:30
-
-
Save dimitrispaxinos/ed1b50385e3b71ec6d8d to your computer and use it in GitHub Desktop.
Serilog: Including Parameters in your Logging Event
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
// Define two input parameters | |
string fName = "Dimitris"; | |
string lName = "Paxinos"; | |
// Include them in a way similar to the String.Format way. | |
Log.Logger.Information("My name is {FirstName} {LastName}", fName, lName); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment