System.out or
System.err using a layout specified by the user. The default
target is System.out.
For more information about this appender, please refer to the online manual at http://logback.qos.ch/manual/appenders.html#ConsoleAppender
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final Class | |
| private static final String | |
| private static final String | |
| protected ConsoleTarget | |
| protected boolean | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public boolean | |
| public void | |
| public void | setWithJansi(boolean
whether to use JANSI or not. withJansi)If true, this appender will output to a stream provided by the JANSI library. |
| public void | start()
Overrides ch. Implements ch. |
| private void | |
| private OutputStream |
| AnsiConsole_CLASS_NAME | back to summary |
|---|---|
| private static final String AnsiConsole_CLASS_NAME | |
| ARGUMENT_TYPES | back to summary |
|---|---|
| private static final Class<?>[] ARGUMENT_TYPES | |
| JANSI2_ERR_METHOD_NAME | back to summary |
|---|---|
| private static final String JANSI2_ERR_METHOD_NAME | |
| JANSI2_OUT_METHOD_NAME | back to summary |
|---|---|
| private static final String JANSI2_OUT_METHOD_NAME | |
| target | back to summary |
|---|---|
| protected ConsoleTarget target | |
| withJansi | back to summary |
|---|---|
| protected boolean withJansi | |
| wrapSystemErr_METHOD_NAME | back to summary |
|---|---|
| private static final String wrapSystemErr_METHOD_NAME | |
| wrapSystemOut_METHOD_NAME | back to summary |
|---|---|
| private static final String wrapSystemOut_METHOD_NAME | |
| ConsoleAppender | back to summary |
|---|---|
| public ConsoleAppender() | |
| getTarget | back to summary |
|---|---|
| public String getTarget() Returns the current value of the target property. The default value of the option is "System.out".
See also | |
| isWithJansi | back to summary |
|---|---|
public boolean isWithJansi()
| |
| setTarget | back to summary |
|---|---|
| public void setTarget(String value) Sets the value of the Target option. Recognized values are "System.out" and "System.err". Any other value will be ignored. | |
| setWithJansi | back to summary |
|---|---|
| public void setWithJansi(boolean withJansi) If true, this appender will output to a stream provided by the JANSI library.
| |
| start | back to summary |
|---|---|
| public void start() Overrides ch. Implements ch. Doc from ch. Checks that requires parameters are set and if everything is in order, activates this appender.
| |
| targetWarn | back to summary |
|---|---|
| private void targetWarn(String val) | |
| wrapWithJansi | back to summary |
|---|---|
| private OutputStream wrapWithJansi(OutputStream targetStream) | |