Skip to content

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

License

Notifications You must be signed in to change notification settings

Brightspace/SimpleLogInterface

Repository files navigation

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"
}

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages