You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just a small suggestion... Because Serilog is already outputting to the console for the DbMigrator, there is no need for the default ILogger to be registered and outputting unnecessary information on the console. We can disable like below:
using Microsoft.Extensions.Hosting;publicstatic IHostBuilder CreateHostBuilder(string[]args)=>
Host.CreateDefaultBuilder(args).ConfigureLogging((context,logging)=> logging.ClearProviders())//ADD THIS.ConfigureServices((hostContext,services)=>{ services.AddHostedService<DbMigratorHostedService>();});
Before:
After:
I would probably make it read "Migration successful. Press Ctrl+C to exit." at the end.
The text was updated successfully, but these errors were encountered:
olicooper
changed the title
Simplify console output
Simplify DbMigrator console output
Apr 18, 2020
Just a small suggestion... Because Serilog is already outputting to the console for the DbMigrator, there is no need for the default ILogger to be registered and outputting unnecessary information on the console. We can disable like below:
Before:
After:
I would probably make it read "Migration successful. Press Ctrl+C to exit." at the end.
The text was updated successfully, but these errors were encountered: