openvidu-server: logback colors updated

pull/405/head
pabloFuente 2020-02-21 12:08:48 +01:00
parent 57b55bba85
commit 947435f5c1
2 changed files with 4 additions and 2 deletions

View File

@ -27,6 +27,9 @@ public class CDRLoggerFile implements CDRLogger {
private Logger log = LoggerFactory.getLogger(CDRLoggerFile.class);
/**
* This logs directly to the file thanks to logback configuration
*/
@Override
public void log(CDREvent event) {
log.info("{}", event);

View File

@ -11,8 +11,7 @@
<if
condition='property("logging.colors").equalsIgnoreCase("true")'>
<then>
<pattern>%highlight([%p]) %d %magenta([%.15t]) %c \(%M\) - %msg%n
</pattern>
<pattern>%highlight([%p]) %black(%d) %magenta([%.15t]) %black(%c) %cyan(\(%M\)) - %black(%msg%n)</pattern>
</then>
<else>
<pattern>[%p] %d [%.15t] %c \(%M\) - %msg%n