The SQL connection string for error logging in the database.
Table name for error logging
File path of the log file
Maximum size of the log file in bytes.
If the value is set to true, a new log file is created when the maximum size is reached. If the value is set to false, the log file is overwritten.
The SQL Connection String
The SQL Connection String
Database schema for hangfire tables
#Bitte das Feld Domain leer lassen
App Reristration Tenant ID
App Registration Client ID
App-registration Client Secret
Authentication method, possible values: WinAuth, Azure or None
#EOF
|
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information",
"Hangfire": "Information"
}
},
"Serilog": {
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"Using": [
"Serilog.Expressions"
],
"Enrich": [
"WithEnvironmentUserName",
"FromLogContext"
],
"Properties": {
"ApplicationName": "Azure Service Connector"
},
"WriteTo": [
{
"Name": "Console",
"Args": {
"theme": "Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Code, Serilog.Sinks.Console",
"formatter": {
"type": "Serilog.Templates.ExpressionTemplate, Serilog.Expressions",
"template": "[{@t:HH:mm:ss} {@l:u3}] <s:{SourceContext}> {@m}\n{@x}"
}
}
},
{
"Name": "MSSqlServer",
"Args": {
"connectionString": "",
"tableName": "Logs",
"autoCreateSqlTable": true,
"restrictedToMinimumLevel": "Error"
}
},
{
"Name": "Async",
"Args": {
"configure": [
{
"Name": "File",
"Args": {
"formatter": {
"type": "Serilog.Templates.ExpressionTemplate, Serilog.Expressions",
"template": "<![LOG[{EnvironmentUserName} --> {@l:u}: {@m}\n{@x}]LOG]!><time=\"{@t:HH:mm:ss.fffffff}\" date=\"{@t:MM-dd-yyyy}\" component=\"{ApplicationName} {Version}\" context=\"\" type=\"{#if @l = 'Error'}3{#else if @l = 'Warning'}2{#else}1{#end}\" thread=\"\" file=\"\">\n"
},
"path": "azure_service_connector.log",
"shared": "true",
"fileSizeLimitBytes": "1000000",
"rollOnFileSizeLimit": true,
"flushToDiskInterval": "1"
}
}
]
}
}
]
},
"DetailedErrors": true,
"ConnectionStrings": {
"DefaultConnection": "",
"HangfireConnection": ""
},
"Hangfire": {
"Schema" : "asc"
},
"Azure": {
"Instance": "https://login.microsoftonline.com/",
"Domain": "",
"ClientId": "",
"TenantId": "",
"CallbackPath": "/signin-oidc",
"KeyVaultUri": "",
"ClientSecret": ""
},
"Authentication": "WinAuth",
"AllowedHosts": "*"
}
|