Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 889 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 889 Bytes

SimpleLogInterface

Build status NuGet

A clean and simple logging interface intended to be logging system independent.

The goal was to have a logging interface which did not promote mixing context information into the message string, but instead seperating this data into seperate fields.

Example:

m_log.Debug(
	() => new {
		Message = "Created ec2 instance",
		InstanceName = instance.Name,
		Ec2Instance = ec2InstanceId
	}
);

This allows for an easy translation into formats like json:

{
	"Message":"Created ec2 instance",
	"InstanceName":"Test",
	"Ec2Instance":"i-c885efe4"
}