Skip to content

Commit

Permalink
Add logging properties
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNK committed Dec 14, 2020
1 parent b276c7e commit bd23c42
Showing 1 changed file with 55 additions and 13 deletions.
68 changes: 55 additions & 13 deletions src/schemas/json/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -254,21 +254,24 @@
}
}
},
"logLevelThreshold": {
"description": "Log level threshold.",
"type": "string",
"enum": [
"Trace",
"Debug",
"Information",
"Warning",
"Error",
"Critical",
"None"
]
},
"logLevel": {
"description": "Log level configurations used when creating logs. Only logs that exceeds its matching log level will be enabled. Each log level configuration has a category specified by its JSON property name. For more information about configuring log levels, see https://docs.microsoft.com/aspnet/core/fundamentals/logging/#configure-logging.",
"type": "object",
"additionalProperties": {
"description": "Log level configuration.",
"type": "string",
"enum": [
"Trace",
"Debug",
"Information",
"Warning",
"Error",
"Critical",
"None"
]
"$ref": "#/definitions/logLevelThreshold"
}
},
"logging": {
Expand All @@ -277,6 +280,45 @@
"properties": {
"LogLevel": {
"$ref": "#/definitions/logLevel"
},
"Console": {
"properties": {
"LogLevel": {
"$ref": "#/definitions/logLevel"
},
"FormatterName": {
"description": "",
"type": "string"
},
"FormatterOptions": {
"description": "",
"type": "object"
},
"LogToStandardErrorThreshold": {
"$ref": "#/definitions/logLevelThreshold"
}
}
},
"EventSource": {
"properties": {
"LogLevel": {
"$ref": "#/definitions/logLevel"
}
}
},
"Debug": {
"properties": {
"LogLevel": {
"$ref": "#/definitions/logLevel"
}
}
},
"EventLog": {
"properties": {
"LogLevel": {
"$ref": "#/definitions/logLevel"
}
}
}
},
"additionalProperties": {
Expand All @@ -294,10 +336,10 @@
"type": "string"
},
"connectionStrings": {
"description": "Entity Framework Core connection string configuration.",
"description": "Connection string configuration. Get connection strings with the IConfiguration.GetConnectionString(string) extension method.",
"type": "object",
"additionalProperties": {
"description": "Connection string configuration. Each connection string has a name specified by its JSON property name. Get connection strings with the IConfiguration.GetConnectionString(string) extension method.",
"description": "Connection string configuration. Each connection string has a name specified by its JSON property name.",
"type": "string"
}
}
Expand Down

0 comments on commit bd23c42

Please sign in to comment.