Skip to content

Commit

Permalink
colorize console
Browse files Browse the repository at this point in the history
  • Loading branch information
infeo committed Sep 25, 2024
1 parent dfd562e commit 883359c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@
<artifactId>logback-classic</artifactId>
<version>${logback.version}</version>
</dependency>
<dependency>
<groupId>org.fusesource.jansi</groupId>
<artifactId>jansi</artifactId>
<version>2.4.1</version>
</dependency>

</dependencies>

<build>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
requires org.cryptomator.frontend.fuse;
requires info.picocli;
requires org.slf4j;
requires org.slf4j.jul;
requires org.cryptomator.integrations.api;
requires org.fusesource.jansi;
}
4 changes: 1 addition & 3 deletions src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE xml>
<configuration>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<withJansi>true</withJansi>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %highlight(%-5level) %logger{36} - %msg%n</pattern>
<pattern>[%thread] %highlight(%-5level) %cyan(%logger{15}) - %msg %n</pattern>
</encoder>
</appender>

Expand Down

0 comments on commit 883359c

Please sign in to comment.