@@ -22,7 +22,7 @@ application itself:
22
22
1 . Add a dependency on TerminalConsoleAppender:
23
23
24
24
```
25
- net.minecrell:terminalconsoleappender:1.2 .0
25
+ net.minecrell:terminalconsoleappender:1.3 .0
26
26
```
27
27
28
28
If you package all dependencies into a single JAR file, ensure that all transitive dependencies are included:
@@ -40,7 +40,7 @@ application itself:
40
40
41
41
| | [Jansi] | [JNA] |
42
42
| ---: | ------ | ------- |
43
- | **Dependencies** | `org.jline:jline-terminal-jansi:3.12.1 ` | `org.jline:jline-terminal-jna:3.12.1 ` |
43
+ | **Dependencies** | `org.jline:jline-terminal-jansi:3.20.0 ` | `org.jline:jline-terminal-jna:3.20.0 ` |
44
44
| | (`org.fusesource.jansi:jansi`) | (`net.java.dev.jna:jna`) |
45
45
| **Size** | ~280KB | ~1400KB |
46
46
@@ -122,12 +122,13 @@ JLine will automatically render ANSI color escape codes in supported terminals u
122
122
To use them, you need to instruct Log4j to insert them into log messages:
123
123
124
124
- You can use the [ patterns included in Log4j] ( https://logging.apache.org/log4j/2.x/manual/layouts.html#Patterns )
125
- in your ` PatternLayout ` , e.g. ` %highlight ` or ` %style ` . It is recommended to use the ` noConsoleNoAnsi ` option for
126
- ` PatternLayout ` to omit them in unsupported environments:
125
+ in your ` PatternLayout ` , e.g. ` %highlight ` or ` %style ` . It is recommended to use the ` disableAnsi ` option
126
+ together with the ` ${tca:disableAnsi} ` variable. This will ensure that ANSI colors are disabled automatically in
127
+ unsupported environments or with the system properties mentioned above:
127
128
128
129
``` xml
129
130
<TerminalConsole >
130
- <PatternLayout noConsoleNoAnsi = " true " pattern =" %highlight{[%d{HH:mm:ss} %level]: %msg%n%xEx}" />
131
+ <PatternLayout pattern =" %highlight{[%d{HH:mm:ss} %level]: %msg%n%xEx} " disableAnsi = " ${tca:disableAnsi }" />
131
132
</TerminalConsole >
132
133
```
133
134
@@ -160,6 +161,10 @@ To use them, you need to instruct Log4j to insert them into log messages:
160
161
<PatternLayout pattern =" [%d{HH:mm:ss} %level]: %minecraftFormatting{%msg}{strip}%n" />
161
162
</TerminalConsole >
162
163
```
164
+
165
+ ** NOTE:** The MinecraftFormattingConverter is deprecated and may be removed in future versions of
166
+ TerminalConsoleAppender. There are no plans to extend it with new features like RGB color codes.
167
+ Please see [ issue #18 ] ( https://github.com/Minecrell/TerminalConsoleAppender/issues/18 ) for details.
163
168
164
169
[ Log4j2 Appender ] : https://logging.apache.org/log4j/2.x/manual/appenders.html
165
170
[ JLine 3 Terminal ] : https://github.com/jline/jline3
0 commit comments