本文整理汇总了Java中ch.qos.logback.classic.spi.ThrowableProxyUtil.subjoinPackagingData方法的典型用法代码示例。如果您正苦于以下问题:Java ThrowableProxyUtil.subjoinPackagingData方法的具体用法?Java ThrowableProxyUtil.subjoinPackagingData怎么用?Java ThrowableProxyUtil.subjoinPackagingData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ch.qos.logback.classic.spi.ThrowableProxyUtil
的用法示例。
在下文中一共展示了ThrowableProxyUtil.subjoinPackagingData方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: fullDump
import ch.qos.logback.classic.spi.ThrowableProxyUtil; //导入方法依赖的package包/类
public String fullDump(ILoggingEvent evt) {
try {
IThrowableProxy proxy = evt.getThrowableProxy();
if(proxy == null)
return null;
StringBuilder builder = new StringBuilder();
for (StackTraceElementProxy step : proxy
.getStackTraceElementProxyArray()) {
String string = step.toString();
builder.append(CoreConstants.TAB).append(string);
ThrowableProxyUtil.subjoinPackagingData(builder, step);
builder.append(CoreConstants.LINE_SEPARATOR);
}
return builder.toString();
} catch(Exception e) {
addError("exception trying to log exception", e);
return "exception parsing exception";
}
}
示例2: fullDump
import ch.qos.logback.classic.spi.ThrowableProxyUtil; //导入方法依赖的package包/类
private String fullDump(StackTraceElementProxy[] stackTraceElementProxyArray) {
StringBuilder builder = new StringBuilder();
for (StackTraceElementProxy step : stackTraceElementProxyArray) {
builder.append(CoreConstants.LINE_SEPARATOR);
String string = step.toString();
builder.append(CoreConstants.TAB).append(string);
ThrowableProxyUtil.subjoinPackagingData(builder, step);
}
return builder.toString();
}
示例3: dump
import ch.qos.logback.classic.spi.ThrowableProxyUtil; //导入方法依赖的package包/类
private String dump(IThrowableProxy throwableProxy) {
StringBuilder builder = new StringBuilder();
builder.append(throwableProxy.getClassName()).append(": ").append(throwableProxy.getMessage()).append(CoreConstants.LINE_SEPARATOR);
for (StackTraceElementProxy step : throwableProxy.getStackTraceElementProxyArray()) {
String string = step.toString();
builder.append(CoreConstants.TAB).append(string);
ThrowableProxyUtil.subjoinPackagingData(builder, step);
builder.append(CoreConstants.LINE_SEPARATOR);
}
return builder.toString();
}
示例4: extraData
import ch.qos.logback.classic.spi.ThrowableProxyUtil; //导入方法依赖的package包/类
@Override
protected void extraData(StringBuilder builder, StackTraceElementProxy step) {
ThrowableProxyUtil.subjoinPackagingData(builder, step);
}
示例5: extraData
import ch.qos.logback.classic.spi.ThrowableProxyUtil; //导入方法依赖的package包/类
@Override
protected void extraData(StringBuilder builder, StackTraceElementProxy step) {
if (step != null) {
ThrowableProxyUtil.subjoinPackagingData(builder, step);
}
}