Skip to content

Instantly share code, notes, and snippets.

@scottoffen
Last active May 29, 2018 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottoffen/2f36bbfebfaac4fd8922bfa369a034ec to your computer and use it in GitHub Desktop.
Save scottoffen/2f36bbfebfaac4fd8922bfa369a034ec to your computer and use it in GitHub Desktop.
Customizing The Grapevine Logger

Customizing The Grapevine 4 Logger

First, create a class that implements the IGrapevineLogger interface.

public class MyCustomLogger : IGrapevineLogger
{
    // implementation details
}

Then assign an instance of it to the RestServer.Logger property.

using (var server =  new RestServer())
{
    server.Logger = new MyCustomLogger();
}

This will change in the upcoming version 5 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment