本文整理匯總了Java中ch.qos.logback.classic.pattern.SyslogStartConverter類的典型用法代碼示例。如果您正苦於以下問題:Java SyslogStartConverter類的具體用法?Java SyslogStartConverter怎麽用?Java SyslogStartConverter使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
SyslogStartConverter類屬於ch.qos.logback.classic.pattern包,在下文中一共展示了SyslogStartConverter類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: buildLayout
import ch.qos.logback.classic.pattern.SyslogStartConverter; //導入依賴的package包/類
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;
}
示例2: setupStackTraceLayout
import ch.qos.logback.classic.pattern.SyslogStartConverter; //導入依賴的package包/類
private void setupStackTraceLayout() {
stackTraceLayout.getInstanceConverterMap().put("syslogStart",
SyslogStartConverter.class.getName());
stackTraceLayout.setPattern(getPrefixPattern() + stackTracePattern);
stackTraceLayout.setContext(getContext());
stackTraceLayout.start();
}