Skip to content

Instantly share code, notes, and snippets.

@cmatskas
Last active August 29, 2015 14:21
Show Gist options
  • Save cmatskas/082c52bc4e47cb2d1c5a to your computer and use it in GitHub Desktop.
Save cmatskas/082c52bc4e47cb2d1c5a to your computer and use it in GitHub Desktop.
using Common.Logging;
public class SomeClass
{
private static readonly ILog log = LogManager.GetCurrentClassLogger();
public void SomeMethod()
{
context.Database.Log = message => log.Debug(message);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment