Java 类ch.qos.logback.classic.pattern.MDCConverter 实例源码

项目:bartleby    文件:HTMLLayout.java   
@Override
protected String computeConverterName(Converter c) {
  if(c instanceof MDCConverter) {
    MDCConverter mc = (MDCConverter) c;
    String key = mc.getFirstOption();
    if(key != null) {
      return key;
    } else {
      return "MDC";
    }
  } else {    
    return super.computeConverterName(c);
  }
}