当前位置: 首页>>代码示例>>Java>>正文


Java ThrowableProxyUtil.subjoinPackagingData方法代码示例

本文整理汇总了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";
	}
}
 
开发者ID:guci314,项目名称:playorm,代码行数:21,代码来源:CassandraAppender.java

示例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();
}
 
开发者ID:aliyun,项目名称:aliyun-log-logback-appender,代码行数:11,代码来源:LoghubAppender.java

示例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();
}
 
开发者ID:boxfuse,项目名称:cloudwatchlogs-java-appender,代码行数:12,代码来源:CloudwatchLogsLogbackAppender.java

示例4: extraData

import ch.qos.logback.classic.spi.ThrowableProxyUtil; //导入方法依赖的package包/类
@Override
protected void extraData(StringBuilder builder, StackTraceElementProxy step) {
  ThrowableProxyUtil.subjoinPackagingData(builder, step);
}
 
开发者ID:cscfa,项目名称:bartleby,代码行数:5,代码来源:ExtendedThrowableProxyConverter.java

示例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);
    }
}
 
开发者ID:bither,项目名称:bither-desktop-java,代码行数:7,代码来源:PrefixedExtendedThrowableProxyConverter.java


注:本文中的ch.qos.logback.classic.spi.ThrowableProxyUtil.subjoinPackagingData方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。