Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions log4j-samples-graalvm/src/main/resources/log4j2-jtl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@
</Appenders>
<Loggers>
<Root level="TRACE">
<!--
Added solely to verify the reachability-metadata regression (issue #3871).
This configuration is not intended for production use: relying on ThresholdFilter
instead of the more efficient built-in level checks is discouraged.

See: https://github.com/apache/logging-log4j2/issues/3871
-->
<ThresholdFilter level="DEBUG"/>
<AppenderRef ref="FILE"/>
</Root>
</Loggers>
Expand Down
8 changes: 8 additions & 0 deletions log4j-samples-graalvm/src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@
</Appenders>
<Loggers>
<Root level="TRACE">
<!--
Added solely to verify the reachability-metadata regression (issue #3871).
This configuration is not intended for production use: relying on ThresholdFilter
instead of the more efficient built-in level checks is discouraged.

See: https://github.com/apache/logging-log4j2/issues/3871
-->
<ThresholdFilter level="DEBUG"/>
<AppenderRef ref="FILE"/>
</Root>
</Loggers>
Expand Down
2 changes: 1 addition & 1 deletion log4j-samples-graalvm/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</encoder>
</appender>

<root level="TRACE">
<root level="DEBUG">
<appender-ref ref="FILE" />
</root>
</configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#
##
handlers = java.util.logging.FileHandler
.level = FINER
.level = FINE
java.util.logging.FileHandler.pattern = target/logs/file.log
java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter
java.util.logging.SimpleFormatter.format = %4$s %3$s - %5$s%n
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,15 @@
"builderHierarchy": [
"org.apache.logging.log4j.layout.template.json.JsonTemplateLayout$EventTemplateAdditionalField$Builder"
]
},
"org.apache.logging.log4j.core.filter.ThresholdFilter": {
"pluginNames": [
"thresholdfilter"
],
"elementName": "filter",
"printable": true,
"defer": false,
"builderHierarchy": []
}
},
"jsontemplateresolverfactory": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -628,5 +628,19 @@
"name": "propertyArray"
}
]
},
{
"name": "org.apache.logging.log4j.core.filter.ThresholdFilter",
"methods": [
{
"name": "createFilter",
"parameterTypes": [
"org.apache.logging.log4j.Level",
"org.apache.logging.log4j.core.Filter$Result",
"org.apache.logging.log4j.core.Filter$Result"
]
}
],
"fields": []
}
]
]
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,15 @@
"builderHierarchy": [
"org.apache.logging.log4j.core.layout.PatternLayout$Builder"
]
},
"org.apache.logging.log4j.core.filter.ThresholdFilter": {
"pluginNames": [
"thresholdfilter"
],
"elementName": "filter",
"printable": true,
"defer": false,
"builderHierarchy": []
}
},
"typeconverter": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1316,5 +1316,19 @@
}
],
"fields": []
},
{
"name": "org.apache.logging.log4j.core.filter.ThresholdFilter",
"methods": [
{
"name": "createFilter",
"parameterTypes": [
"org.apache.logging.log4j.Level",
"org.apache.logging.log4j.core.Filter$Result",
"org.apache.logging.log4j.core.Filter$Result"
]
}
],
"fields": []
}
]
]
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
*/
class JsonTemplateLayoutIT {

static final String[] STANDARD_LEVELS = {"ERROR", "WARN", "INFO", "DEBUG", "TRACE"};
static final String[] STANDARD_LEVELS = {"ERROR", "WARN", "INFO", "DEBUG"};

@Test
void verifyStdOut() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
*/
class StandardIT {

static final String[] STANDARD_LEVELS = {"ERROR", "WARN", "INFO", "DEBUG", "TRACE"};
static final String[] STANDARD_LEVELS = {"ERROR", "WARN", "INFO", "DEBUG"};

@Test
void verifyStdOut() {
Expand Down
Loading