diff --git a/docs/documentation/upgrading/topics/changes/changes-26_5_0.adoc b/docs/documentation/upgrading/topics/changes/changes-26_5_0.adoc new file mode 100644 index 00000000000..325dd367963 --- /dev/null +++ b/docs/documentation/upgrading/topics/changes/changes-26_5_0.adoc @@ -0,0 +1,26 @@ +// ------------------------ Breaking changes ------------------------ // +== Breaking changes + +// ------------------------ Notable changes ------------------------ // +== Notable changes + +Notable changes may include internal behavior changes that prevent common misconfigurations, bugs that are fixed, or changes to simplify running {project_name}. + +=== `log-console-color` will automatically enable if supported by the terminal + +The `log-console-color` previously defaulted to `false`, but it will now instead check if the terminal supports color. + +You may still explicitly disable color support by setting the option to `false`. + +// ------------------------ Deprecated features ------------------------ // +== Deprecated features + +The following sections provide details on deprecated features. + +// ------------------------ Removed features ------------------------ // +== Removed features + +The following features have been removed from this release. + +=== + diff --git a/docs/documentation/upgrading/topics/changes/changes.adoc b/docs/documentation/upgrading/topics/changes/changes.adoc index ea7f6ba5d3c..5e1638b60f0 100644 --- a/docs/documentation/upgrading/topics/changes/changes.adoc +++ b/docs/documentation/upgrading/topics/changes/changes.adoc @@ -1,6 +1,10 @@ [[migration-changes]] == Migration Changes +=== Migrating to 26.5.0 + +include::changes-26_5_0.adoc[leveloffset=2] + === Migrating to 26.4.0 include::changes-26_4_0.adoc[leveloffset=2] diff --git a/quarkus/config-api/src/main/java/org/keycloak/config/LoggingOptions.java b/quarkus/config-api/src/main/java/org/keycloak/config/LoggingOptions.java index 1364704d1f2..cf62db46e4e 100644 --- a/quarkus/config-api/src/main/java/org/keycloak/config/LoggingOptions.java +++ b/quarkus/config-api/src/main/java/org/keycloak/config/LoggingOptions.java @@ -7,6 +7,7 @@ import java.io.File; import java.util.Arrays; import java.util.List; import java.util.Locale; +import java.util.Optional; import java.util.function.Function; import static java.lang.String.format; @@ -133,8 +134,8 @@ public class LoggingOptions { public static final Option LOG_CONSOLE_COLOR = new OptionBuilder<>("log-console-color", Boolean.class) .category(OptionCategory.LOGGING) - .description("Enable or disable colors when logging to console.") - .defaultValue(Boolean.FALSE) // :-( + .description("Enable or disable colors when logging to console. If this is not present then an attempt will be made to guess if the terminal supports color.") + .defaultValue(Optional.empty()) .build(); public static final Option LOG_CONSOLE_ENABLED = new OptionBuilder<>("log-console-enabled", Boolean.class) diff --git a/quarkus/config-api/src/main/java/org/keycloak/config/OptionBuilder.java b/quarkus/config-api/src/main/java/org/keycloak/config/OptionBuilder.java index f6876d8c10c..a96d903218d 100644 --- a/quarkus/config-api/src/main/java/org/keycloak/config/OptionBuilder.java +++ b/quarkus/config-api/src/main/java/org/keycloak/config/OptionBuilder.java @@ -54,7 +54,6 @@ public class OptionBuilder { hidden = false; build = false; description = null; - defaultValue = Optional.empty(); strictExpectedValues = true; } @@ -178,8 +177,12 @@ public class OptionBuilder { } } - if (defaultValue.isEmpty() && Boolean.class.equals(expected)) { - defaultValue = Optional.of((T) Boolean.FALSE); + if (defaultValue == null) { + if (Boolean.class.equals(expected)) { + defaultValue = Optional.of((T) Boolean.FALSE); + } else { + defaultValue = Optional.empty(); + } } if (transformEnumValues) { diff --git a/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/mappers/LoggingPropertyMappers.java b/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/mappers/LoggingPropertyMappers.java index e8ab1debf13..6431747dc12 100644 --- a/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/mappers/LoggingPropertyMappers.java +++ b/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/mappers/LoggingPropertyMappers.java @@ -16,13 +16,13 @@ import java.util.List; import java.util.Locale; import java.util.Map; import java.util.Objects; +import java.util.Optional; import java.util.Set; import java.util.function.BiFunction; import java.util.logging.Level; import java.util.stream.Collectors; import java.util.stream.Stream; -import io.quarkus.runtime.configuration.MemorySizeConverter; import org.jboss.logmanager.LogContext; import org.keycloak.common.Profile; import org.keycloak.config.LoggingOptions; @@ -31,6 +31,8 @@ import org.keycloak.quarkus.runtime.Messages; import org.keycloak.quarkus.runtime.cli.PropertyException; import org.keycloak.quarkus.runtime.configuration.Configuration; +import io.quarkus.dev.console.QuarkusConsole; +import io.quarkus.runtime.configuration.MemorySizeConverter; import io.smallrye.config.ConfigSourceInterceptorContext; public final class LoggingPropertyMappers implements PropertyMapperGrouping { @@ -87,6 +89,7 @@ public final class LoggingPropertyMappers implements PropertyMapperGrouping { fromOption(LoggingOptions.LOG_CONSOLE_COLOR) .isEnabled(LoggingPropertyMappers::isConsoleEnabled, CONSOLE_ENABLED_MSG) .to("quarkus.console.color") + .transformer(this::transformConsoleColor) .build(), fromOption(LoggingOptions.LOG_CONSOLE_ENABLED) .mapFrom(LoggingOptions.LOG, LoggingPropertyMappers.resolveLogHandler(LoggingOptions.DEFAULT_LOG_HANDLER.name())) @@ -263,6 +266,10 @@ public final class LoggingPropertyMappers implements PropertyMapperGrouping { ); } + private String transformConsoleColor(String value, ConfigSourceInterceptorContext context) { + return Optional.ofNullable(value).orElseGet(() -> Boolean.toString(QuarkusConsole.hasColorSupport())); + } + public static boolean isConsoleEnabled() { return isHandlerEnabled(LoggingOptions.Handler.console); } diff --git a/quarkus/runtime/src/test/java/org/keycloak/quarkus/runtime/configuration/LoggingConfigurationTest.java b/quarkus/runtime/src/test/java/org/keycloak/quarkus/runtime/configuration/LoggingConfigurationTest.java index 5218034a02d..77f7218fc27 100644 --- a/quarkus/runtime/src/test/java/org/keycloak/quarkus/runtime/configuration/LoggingConfigurationTest.java +++ b/quarkus/runtime/src/test/java/org/keycloak/quarkus/runtime/configuration/LoggingConfigurationTest.java @@ -20,6 +20,7 @@ package org.keycloak.quarkus.runtime.configuration; import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import static org.keycloak.config.LoggingOptions.DEFAULT_LOG_FORMAT; @@ -40,6 +41,13 @@ import io.smallrye.config.SmallRyeConfig; public class LoggingConfigurationTest extends AbstractConfigurationTest { + @Test + public void testDefaultLogColor() { + SmallRyeConfig config = createConfig(); + assertNull(config.getConfigValue("kc.log-console-color").getValue()); + assertNotNull(config.getConfigValue("quarkus.console.color").getValue()); + } + @Test public void logHandlerConfig() { ConfigArgsConfigSource.setCliArgs("--log=console,file"); diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testBootstrapAdminService.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testBootstrapAdminService.approved.txt index 866f6d6781a..0550b30ad6c 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testBootstrapAdminService.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testBootstrapAdminService.approved.txt @@ -226,7 +226,8 @@ Logging: parent property 'log-async' is used. Default: false. Available only when Console log handler is activated. --log-console-color - Enable or disable colors when logging to console. Default: false. Available + Enable or disable colors when logging to console. If this is not present then + an attempt will be made to guess if the terminal supports color. Available only when Console log handler is activated. --log-console-format The format of unstructured console log entries. If the format has spaces in diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testBootstrapAdminUser.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testBootstrapAdminUser.approved.txt index 244c87e5150..f5fc196f1a5 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testBootstrapAdminUser.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testBootstrapAdminUser.approved.txt @@ -228,7 +228,8 @@ Logging: parent property 'log-async' is used. Default: false. Available only when Console log handler is activated. --log-console-color - Enable or disable colors when logging to console. Default: false. Available + Enable or disable colors when logging to console. If this is not present then + an attempt will be made to guess if the terminal supports color. Available only when Console log handler is activated. --log-console-format The format of unstructured console log entries. If the format has spaces in diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testExportHelp.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testExportHelp.approved.txt index 42f48230dcc..22a6c3fec6f 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testExportHelp.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testExportHelp.approved.txt @@ -221,7 +221,8 @@ Logging: parent property 'log-async' is used. Default: false. Available only when Console log handler is activated. --log-console-color - Enable or disable colors when logging to console. Default: false. Available + Enable or disable colors when logging to console. If this is not present then + an attempt will be made to guess if the terminal supports color. Available only when Console log handler is activated. --log-console-format The format of unstructured console log entries. If the format has spaces in diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testExportHelpAll.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testExportHelpAll.approved.txt index dd67b8082dc..c54ec065721 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testExportHelpAll.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testExportHelpAll.approved.txt @@ -239,7 +239,8 @@ Logging: Default: 512. Available only when Console log handler is activated and asynchronous logging is enabled. --log-console-color - Enable or disable colors when logging to console. Default: false. Available + Enable or disable colors when logging to console. If this is not present then + an attempt will be made to guess if the terminal supports color. Available only when Console log handler is activated. --log-console-format The format of unstructured console log entries. If the format has spaces in diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testImportHelp.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testImportHelp.approved.txt index d544ae1fad6..aaced03b847 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testImportHelp.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testImportHelp.approved.txt @@ -221,7 +221,8 @@ Logging: parent property 'log-async' is used. Default: false. Available only when Console log handler is activated. --log-console-color - Enable or disable colors when logging to console. Default: false. Available + Enable or disable colors when logging to console. If this is not present then + an attempt will be made to guess if the terminal supports color. Available only when Console log handler is activated. --log-console-format The format of unstructured console log entries. If the format has spaces in diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testImportHelpAll.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testImportHelpAll.approved.txt index ebb18d6778e..d8dcf9ce908 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testImportHelpAll.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testImportHelpAll.approved.txt @@ -239,7 +239,8 @@ Logging: Default: 512. Available only when Console log handler is activated and asynchronous logging is enabled. --log-console-color - Enable or disable colors when logging to console. Default: false. Available + Enable or disable colors when logging to console. If this is not present then + an attempt will be made to guess if the terminal supports color. Available only when Console log handler is activated. --log-console-format The format of unstructured console log entries. If the format has spaces in diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartDevHelp.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartDevHelp.approved.txt index 013fe3ba2f2..ccb426fa33b 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartDevHelp.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartDevHelp.approved.txt @@ -382,7 +382,8 @@ Logging: parent property 'log-async' is used. Default: false. Available only when Console log handler is activated. --log-console-color - Enable or disable colors when logging to console. Default: false. Available + Enable or disable colors when logging to console. If this is not present then + an attempt will be made to guess if the terminal supports color. Available only when Console log handler is activated. --log-console-format The format of unstructured console log entries. If the format has spaces in diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartDevHelpAll.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartDevHelpAll.approved.txt index 625427ed36d..9f3d92a5f3c 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartDevHelpAll.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartDevHelpAll.approved.txt @@ -479,7 +479,8 @@ Logging: Default: 512. Available only when Console log handler is activated and asynchronous logging is enabled. --log-console-color - Enable or disable colors when logging to console. Default: false. Available + Enable or disable colors when logging to console. If this is not present then + an attempt will be made to guess if the terminal supports color. Available only when Console log handler is activated. --log-console-format The format of unstructured console log entries. If the format has spaces in diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartHelp.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartHelp.approved.txt index fa01dee20d8..73a0e17777c 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartHelp.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartHelp.approved.txt @@ -430,7 +430,8 @@ Logging: parent property 'log-async' is used. Default: false. Available only when Console log handler is activated. --log-console-color - Enable or disable colors when logging to console. Default: false. Available + Enable or disable colors when logging to console. If this is not present then + an attempt will be made to guess if the terminal supports color. Available only when Console log handler is activated. --log-console-format The format of unstructured console log entries. If the format has spaces in diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartHelpAll.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartHelpAll.approved.txt index 469db76301f..8819a82977b 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartHelpAll.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartHelpAll.approved.txt @@ -480,7 +480,8 @@ Logging: Default: 512. Available only when Console log handler is activated and asynchronous logging is enabled. --log-console-color - Enable or disable colors when logging to console. Default: false. Available + Enable or disable colors when logging to console. If this is not present then + an attempt will be made to guess if the terminal supports color. Available only when Console log handler is activated. --log-console-format The format of unstructured console log entries. If the format has spaces in diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartOptimizedHelp.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartOptimizedHelp.approved.txt index a85e528cb67..07c71817c60 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartOptimizedHelp.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartOptimizedHelp.approved.txt @@ -368,7 +368,8 @@ Logging: parent property 'log-async' is used. Default: false. Available only when Console log handler is activated. --log-console-color - Enable or disable colors when logging to console. Default: false. Available + Enable or disable colors when logging to console. If this is not present then + an attempt will be made to guess if the terminal supports color. Available only when Console log handler is activated. --log-console-format The format of unstructured console log entries. If the format has spaces in diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartOptimizedHelpAll.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartOptimizedHelpAll.approved.txt index 547c1517b53..747736384f1 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartOptimizedHelpAll.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartOptimizedHelpAll.approved.txt @@ -414,7 +414,8 @@ Logging: Default: 512. Available only when Console log handler is activated and asynchronous logging is enabled. --log-console-color - Enable or disable colors when logging to console. Default: false. Available + Enable or disable colors when logging to console. If this is not present then + an attempt will be made to guess if the terminal supports color. Available only when Console log handler is activated. --log-console-format The format of unstructured console log entries. If the format has spaces in diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityCheckHelp.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityCheckHelp.approved.txt index 4cb51619301..95f14e35746 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityCheckHelp.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityCheckHelp.approved.txt @@ -429,7 +429,8 @@ Logging: parent property 'log-async' is used. Default: false. Available only when Console log handler is activated. --log-console-color - Enable or disable colors when logging to console. Default: false. Available + Enable or disable colors when logging to console. If this is not present then + an attempt will be made to guess if the terminal supports color. Available only when Console log handler is activated. --log-console-format The format of unstructured console log entries. If the format has spaces in diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityCheckHelpAll.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityCheckHelpAll.approved.txt index 0075c4a0d5d..c0d8b2afd55 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityCheckHelpAll.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityCheckHelpAll.approved.txt @@ -479,7 +479,8 @@ Logging: Default: 512. Available only when Console log handler is activated and asynchronous logging is enabled. --log-console-color - Enable or disable colors when logging to console. Default: false. Available + Enable or disable colors when logging to console. If this is not present then + an attempt will be made to guess if the terminal supports color. Available only when Console log handler is activated. --log-console-format The format of unstructured console log entries. If the format has spaces in diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityMetadataHelp.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityMetadataHelp.approved.txt index 625831cf144..1e5452f2053 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityMetadataHelp.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityMetadataHelp.approved.txt @@ -427,7 +427,8 @@ Logging: parent property 'log-async' is used. Default: false. Available only when Console log handler is activated. --log-console-color - Enable or disable colors when logging to console. Default: false. Available + Enable or disable colors when logging to console. If this is not present then + an attempt will be made to guess if the terminal supports color. Available only when Console log handler is activated. --log-console-format The format of unstructured console log entries. If the format has spaces in diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityMetadataHelpAll.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityMetadataHelpAll.approved.txt index 801379ac46e..e2773835d29 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityMetadataHelpAll.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityMetadataHelpAll.approved.txt @@ -477,7 +477,8 @@ Logging: Default: 512. Available only when Console log handler is activated and asynchronous logging is enabled. --log-console-color - Enable or disable colors when logging to console. Default: false. Available + Enable or disable colors when logging to console. If this is not present then + an attempt will be made to guess if the terminal supports color. Available only when Console log handler is activated. --log-console-format The format of unstructured console log entries. If the format has spaces in