Skip to content

Commit

Permalink
✨ Add a getter/setter for ansi in console writer
Browse files Browse the repository at this point in the history
  • Loading branch information
YvanMazy committed May 4, 2024
1 parent e6de885 commit b82e566
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class ColoredConsoleWriter extends AbstractFormatPatternWriter {
private static final String ANSI_BLUE = "\u001B[38;5;14m";

private final Level errorLevel;
private final boolean ansi;
private boolean ansi;

public ColoredConsoleWriter() {
this(Map.of());
Expand Down Expand Up @@ -118,4 +118,12 @@ public void close() {
// do nothing
}

public boolean isAnsi() {
return this.ansi;
}

public void setAnsi(final boolean ansi) {
this.ansi = ansi;
}

}

0 comments on commit b82e566

Please sign in to comment.