mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: logback colors updated
parent
57b55bba85
commit
947435f5c1
|
@ -27,6 +27,9 @@ public class CDRLoggerFile implements CDRLogger {
|
||||||
|
|
||||||
private Logger log = LoggerFactory.getLogger(CDRLoggerFile.class);
|
private Logger log = LoggerFactory.getLogger(CDRLoggerFile.class);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This logs directly to the file thanks to logback configuration
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void log(CDREvent event) {
|
public void log(CDREvent event) {
|
||||||
log.info("{}", event);
|
log.info("{}", event);
|
||||||
|
|
|
@ -11,8 +11,7 @@
|
||||||
<if
|
<if
|
||||||
condition='property("logging.colors").equalsIgnoreCase("true")'>
|
condition='property("logging.colors").equalsIgnoreCase("true")'>
|
||||||
<then>
|
<then>
|
||||||
<pattern>%highlight([%p]) %d %magenta([%.15t]) %c \(%M\) - %msg%n
|
<pattern>%highlight([%p]) %black(%d) %magenta([%.15t]) %black(%c) %cyan(\(%M\)) - %black(%msg%n)</pattern>
|
||||||
</pattern>
|
|
||||||
</then>
|
</then>
|
||||||
<else>
|
<else>
|
||||||
<pattern>[%p] %d [%.15t] %c \(%M\) - %msg%n
|
<pattern>[%p] %d [%.15t] %c \(%M\) - %msg%n
|
||||||
|
|
Loading…
Reference in New Issue