generated from quarkiverse/quarkiverse-template
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
22 deletions.
There are no files selected for viewing
29 changes: 17 additions & 12 deletions
29
deployment/src/main/java/io/quarkiverse/loggingmanager/deployment/LoggingManagerConfig.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,38 @@ | ||
package io.quarkiverse.loggingmanager.deployment; | ||
|
||
import io.quarkus.runtime.annotations.ConfigItem; | ||
import io.quarkus.runtime.annotations.ConfigPhase; | ||
import io.quarkus.runtime.annotations.ConfigRoot; | ||
import io.smallrye.config.ConfigMapping; | ||
import io.smallrye.config.WithDefault; | ||
import io.smallrye.config.WithName; | ||
|
||
@ConfigRoot | ||
public class LoggingManagerConfig { | ||
@ConfigMapping(prefix = "quarkus.logging-manager") | ||
@ConfigRoot(phase = ConfigPhase.BUILD_TIME) | ||
public interface LoggingManagerConfig { | ||
|
||
/** | ||
* The base path | ||
*/ | ||
@ConfigItem(defaultValue = "logging-manager") | ||
String basePath; | ||
@WithDefault("logging-manager") | ||
String basePath(); | ||
|
||
/** | ||
* Whether to include the Logger Manager endpoints in the generated OpenAPI document | ||
*/ | ||
@ConfigItem(name = "openapi.included", defaultValue = "false") | ||
boolean openapiIncluded; | ||
@WithName("openapi.included") | ||
@WithDefault("false") | ||
boolean openapiIncluded(); | ||
|
||
/** | ||
* The tag to use if OpenAPI is included | ||
*/ | ||
@ConfigItem(defaultValue = "Logging-manager") | ||
String openapiTag; | ||
@WithDefault("logging-manager") | ||
String openapiTag(); | ||
|
||
/** | ||
* Always include this. By default, this will always be included. | ||
* Setting this to false will also exclude this in Prod | ||
*/ | ||
@ConfigItem(defaultValue = "true") | ||
boolean alwaysInclude; | ||
} | ||
@WithDefault("true") | ||
boolean alwaysInclude(); | ||
} |
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
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