You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Converts a logging configuration file from one format to another.
23
+
*/
24
+
@AllArgsConstructor
25
+
publicclassConvertConfigurationextendsRecipe {
26
+
27
+
@Option(displayName = "Pattern for the files to convert",
28
+
description = "If set, only the files that match this pattern will be converted.",
29
+
required = false)
30
+
@Nullable
31
+
StringfilePattern;
32
+
33
+
@Option(displayName = "Input format", description = "The id of the input logging configuration format. See [Log4j documentation](https://logging.staged.apache.org/log4j/transform/log4j-converter-config.html#formats) for a list of supported formats.", example = "v1:properties")
34
+
StringinputFormat;
35
+
36
+
@Option(displayName = "Output format", description = "The id of the output logging configuration format. See [Log4j documentation](https://logging.staged.apache.org/log4j/transform/log4j-converter-config.html#formats) for a list of supported formats.", example = "v2:xml")
return"Converts the configuration of a logging backend from one format to another. For example it can convert a Log4j 1 properties configuration file into a Log4j Core 2 XML configuration file.";
description: Migrates usage of Apache Log4j 2.x to using `logback` as an SLF4J implementation directly. Note, this currently does not modify `log4j.properties` files.
20
+
displayName: Migrate Log4j API/Log4j Core 2 to SLF4J/Logback
21
+
description: |
22
+
Migrates usage of Apache Log4j API with Log4j Core 2 implementation to SLF4J with Logback implementation.
23
+
Note, this currently does not modify the Log4j Core 2 configuration files.
0 commit comments