Improve logger-name value hint definition
This commit improve the logger-name value hint by adding a group attribute that can be defined to specify whether logging groups should be considered. Closes gh-14748
This commit is contained in:
parent
923b48bae0
commit
1a140a80d8
|
@ -599,10 +599,22 @@ keep the original String value to pass it to the Liquibase API.
|
|||
===== Logger Name
|
||||
The **logger-name** provider auto-completes valid logger names and
|
||||
<<spring-boot-features.adoc#boot-features-custom-log-groups,logger groups>>. Typically,
|
||||
package and class names available in the current project can be auto-completed. If a
|
||||
custom logger group is identified in the configuration, auto-completion for it should
|
||||
be provided. Specific frameworks may have extra magic logger names that can be supported
|
||||
as well.
|
||||
package and class names available in the current project can be auto-completed. If groups
|
||||
are enabled (default) and if a custom logger group is identified in the configuration,
|
||||
auto-completion for it should be provided. Specific frameworks may have extra magic logger
|
||||
names that can be supported as well.
|
||||
|
||||
This provider supports the following parameters:
|
||||
|
||||
[cols="1,1,2,4"]
|
||||
|===
|
||||
|Parameter |Type |Default value |Description
|
||||
|
||||
|`group`
|
||||
|`boolean`
|
||||
|`true`
|
||||
|Specify whether known groups should be considered.
|
||||
|===
|
||||
|
||||
Since a logger name can be any arbitrary name, this provider should allow any
|
||||
value but could highlight valid package and class names that are not available in the
|
||||
|
|
|
@ -338,6 +338,18 @@
|
|||
}
|
||||
],
|
||||
"hints": [
|
||||
{
|
||||
"name": "logging.group.values",
|
||||
"providers": [
|
||||
{
|
||||
"name": "logger-name",
|
||||
"parameters": {
|
||||
"group": false
|
||||
}
|
||||
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "logging.level.keys",
|
||||
"values": [
|
||||
|
|
Loading…
Reference in New Issue