The .NET Version of chromelogger. Add output to the Chrome console from your .NET application's server-side code.
Install with NuGet: http://nuget.org/packages/ChromeLogger/
At the end of your request, you'll need to set the custom ChromeLogger header, here's an example:
public class WebApiApplication : HttpApplication
{
protected void Application_EndRequest(Object sender, EventArgs e)
{
Context.Response.Headers.Add(Logger.GetHeader());
}
}
The most notable change is the requirement to manually add the header at the end of the request
Improved the API a bit by adding a dependency on System.Web so calls such as
Logger.Log()
will add the header directly to the response.
A very crude implementation. Largely untested, please file any bugs or issues on the GitHub issues page. I'm open to any and all suggestions to make this work better, please share your thoughts as issues.