Skip to content

Instantly share code, notes, and snippets.

@dimitrispaxinos
Last active October 31, 2015 14:30
Show Gist options
  • Save dimitrispaxinos/ed1b50385e3b71ec6d8d to your computer and use it in GitHub Desktop.
Save dimitrispaxinos/ed1b50385e3b71ec6d8d to your computer and use it in GitHub Desktop.
Serilog: Including Parameters in your Logging Event
// 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