Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Old Startup constructor
public class Startup
{
public Startup(IConfiguration configuration, ILoggerFactory logFactory)
{
Logger = logFactory.CreateLogger<Startup>();
}
private ILogger Logger { get; }
public void ConfigureServices(IServiceCollection services)
{
Logger.LogInformation("Registering Services");
// And the rest
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment