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

项目:bartleby    文件:SyslogAppender.java   
public Layout<ILoggingEvent> buildLayout() {
  PatternLayout layout = new PatternLayout();
  layout.getInstanceConverterMap().put("syslogStart",
          SyslogStartConverter.class.getName());
  if (suffixPattern == null) {
    suffixPattern = DEFAULT_SUFFIX_PATTERN;
  }
  layout.setPattern(getPrefixPattern() + suffixPattern);
  layout.setContext(getContext());
  layout.start();
  return layout;
}
项目:bartleby    文件:SyslogAppender.java   
private void setupStackTraceLayout() {
  stackTraceLayout.getInstanceConverterMap().put("syslogStart",
          SyslogStartConverter.class.getName());

  stackTraceLayout.setPattern(getPrefixPattern() + stackTracePattern);
  stackTraceLayout.setContext(getContext());
  stackTraceLayout.start();
}