Serilog updates
parent
b3eecbff77
commit
958a8499f8
|
@ -39,12 +39,15 @@ namespace IdentityServer.Api
|
|||
columnOptions.Store.Remove(StandardColumn.Properties);
|
||||
columnOptions.Store.Remove(StandardColumn.MessageTemplate);
|
||||
columnOptions.Store.Add(StandardColumn.LogEvent);
|
||||
|
||||
var mssqlSinkOptions = new MSSqlServerSinkOptions() { AutoCreateSqlTable = true, TableName = "__Logs" };
|
||||
|
||||
Log.Logger = new LoggerConfiguration()
|
||||
.MinimumLevel.ControlledBy(loggingLevelSwitch)
|
||||
.MinimumLevel.Override("Microsoft", LogEventLevel.Warning)
|
||||
.Enrich.FromLogContext()
|
||||
.WriteTo.Console()
|
||||
.WriteTo.MSSqlServer(connectionString, "__Logs", autoCreateSqlTable: true, columnOptions: columnOptions)
|
||||
.WriteTo.MSSqlServer(connectionString, mssqlSinkOptions, columnOptions: columnOptions)
|
||||
.CreateLogger();
|
||||
|
||||
try
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# chmod u+x build-amd64.sh
|
||||
echo "Welcome!"
|
||||
|
||||
version="1.0.0"
|
||||
version="1.0.1-alpha1"
|
||||
localRegistryPass="***REMOVED***"
|
||||
|
||||
echo "Create docker image with version $version."
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<Project>
|
||||
<PropertyGroup Label="Package Versions">
|
||||
<MicrosoftExtensionsPackageVersion>3.1.3</MicrosoftExtensionsPackageVersion>
|
||||
<SerilogPackageVersion>3.2.0</SerilogPackageVersion>
|
||||
<SerilogExtensionsPackageVersion>3.0.1</SerilogExtensionsPackageVersion>
|
||||
<SerilogSinksConsolePackageVersion>3.1.1</SerilogSinksConsolePackageVersion>
|
||||
<SerilogSinksMSSqlServerPackageVersion>5.2.0</SerilogSinksMSSqlServerPackageVersion>
|
||||
<MicrosoftExtensionsPackageVersion>3.1.8</MicrosoftExtensionsPackageVersion>
|
||||
<SerilogPackageVersion>4.1.0</SerilogPackageVersion>
|
||||
<SerilogExtensionsPackageVersion>3.1.0</SerilogExtensionsPackageVersion>
|
||||
<SerilogSinksConsolePackageVersion>4.0.0</SerilogSinksConsolePackageVersion>
|
||||
<SerilogSinksMSSqlServerPackageVersion>5.6.1</SerilogSinksMSSqlServerPackageVersion>
|
||||
<AutoMapperPackageVersion>9.0.0</AutoMapperPackageVersion>
|
||||
<AutoMapperExtensionsPackageVersion>7.0.0</AutoMapperExtensionsPackageVersion>
|
||||
<MediatRPackageVersion>6.0.0</MediatRPackageVersion>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
echo "Welcome!"
|
||||
|
||||
version="1.0.0"
|
||||
version="1.0.1"
|
||||
oldver="1.0.0"
|
||||
|
||||
echo "Pull docker image identity-server:$version from registry."
|
||||
|
|
Loading…
Reference in New Issue