Created
May 3, 2020 08:25
-
-
Save sametoz/c236202a4962a0ea341278135020bb30 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
public static void Main(string[] args) | |
{ | |
... | |
Log.Logger = new LoggerConfiguration() | |
.Enrich.FromLogContext() | |
.WriteTo.MSSqlServer( | |
connectionString: appSettings.GetConnectionString("DB"), | |
sinkOptions: sinkOpts, | |
columnOptions: columnOptions, | |
restrictedToMinimumLevel: LogEventLevel.Error | |
).CreateLogger(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment