Created
October 3, 2016 15:23
-
-
Save OdeToCode/46d4eaa0ed0d4a1cf1496cfb45b84650 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (var db = new ThingDb()) | |
{ | |
// just need this once for all instances to log: | |
var serviceProvider = db.GetInfrastructure(); | |
var loggerFactory = serviceProvider.GetService<ILoggerFactory>(); | |
loggerFactory.AddConsole(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment