-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add build-time min-level logging option #12938
* It enables log levels below that to be folded in native. * Runtime min-level has been removed (was deprecated already).
- Loading branch information
Showing
72 changed files
with
1,458 additions
and
17 deletions.
There are no files selected for viewing
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
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
22 changes: 22 additions & 0 deletions
22
core/runtime/src/main/java/io/quarkus/runtime/logging/CategoryBuildTimeConfig.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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package io.quarkus.runtime.logging; | ||
|
||
import io.quarkus.runtime.annotations.ConfigGroup; | ||
import io.quarkus.runtime.annotations.ConfigItem; | ||
|
||
@ConfigGroup | ||
public class CategoryBuildTimeConfig { | ||
/** | ||
* The minimum log level for this category. | ||
* By default all categories are configured with <code>INFO</code> minimum level. | ||
* | ||
* To get runtime logging below <code>INFO</code>, e.g. <code>DEBUG</code> or <code>TRACE</code>, | ||
* the minimum level has to be adjusted at build time, the right log level needs to be provided at runtime. | ||
* | ||
* As an example, to get <code>TRACE</code> logging, | ||
* minimum level needs to be at <code>TRACE</code> and the runtime log level needs to match that. | ||
* To get <code>DEBUG</code> logging, | ||
* minimum level needs to be set at <code>DEBUG</code> or <code>TRACE</code> (as well as runtime log level). | ||
*/ | ||
@ConfigItem(defaultValue = "inherit") | ||
public InheritableLevel minLevel; | ||
} |
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
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
Oops, something went wrong.