本文整理了Java中ch.qos.logback.core.Layout.getPresentationFooter()
方法的一些代码示例,展示了Layout.getPresentationFooter()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Layout.getPresentationFooter()
方法的具体详情如下:
包路径:ch.qos.logback.core.Layout
类名称:Layout
方法名:getPresentationFooter
[英]Return the footer of the logging event formatting. The returned value may be null.
[中]返回日志事件格式的页脚。返回的值可能为空。
代码示例来源:origin: camunda/camunda-bpm-platform
void writeFooter() throws IOException {
if (layout != null && outputStream != null) {
StringBuilder sb = new StringBuilder();
appendIfNotNull(sb, layout.getPresentationFooter());
appendIfNotNull(sb, layout.getFileFooter());
if (sb.length() > 0) {
outputStream.write(convertToBytes(sb.toString()));
outputStream.flush();
}
}
}
代码示例来源:origin: camunda/camunda-bpm-platform
String presentationFooter = layout.getPresentationFooter();
if (presentationFooter != null) {
sbuf.append(presentationFooter);
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/ch.qos.logback.core
void writeFooter() throws IOException {
if (layout != null && outputStream != null) {
StringBuilder sb = new StringBuilder();
appendIfNotNull(sb, layout.getPresentationFooter());
appendIfNotNull(sb, layout.getFileFooter());
if (sb.length() > 0) {
outputStream.write(convertToBytes(sb.toString()));
outputStream.flush();
}
}
}
代码示例来源:origin: com.hynnet/logback-core
void writeFooter() throws IOException {
if (layout != null && outputStream != null) {
StringBuilder sb = new StringBuilder();
appendIfNotNull(sb, layout.getPresentationFooter());
appendIfNotNull(sb, layout.getFileFooter());
if (sb.length() > 0) {
outputStream.write(convertToBytes(sb.toString()));
outputStream.flush();
}
}
}
代码示例来源:origin: ch.qos.logback/core
void writeFooter() throws IOException {
if (layout != null && outputStream != null) {
StringBuilder sb = new StringBuilder();
appendIfNotNull(sb, layout.getPresentationFooter());
appendIfNotNull(sb, layout.getFileFooter());
if (sb.length() > 0) {
outputStream.write(convertToBytes(sb.toString()));
outputStream.flush();
}
}
}
代码示例来源:origin: tony19/logback-android
@Override
public byte[] footerBytes() {
if (layout == null) {
return null;
}
StringBuilder sb = new StringBuilder();
appendIfNotNull(sb, layout.getPresentationFooter());
appendIfNotNull(sb, layout.getFileFooter());
return convertToBytes(sb.toString());
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
@Override
public byte[] footerBytes() {
if (layout == null)
return null;
StringBuilder sb = new StringBuilder();
appendIfNotNull(sb, layout.getPresentationFooter());
appendIfNotNull(sb, layout.getFileFooter());
return convertToBytes(sb.toString());
}
代码示例来源:origin: Nextdoor/bender
@Override
public byte[] footerBytes() {
if (layout == null)
return null;
StringBuilder sb = new StringBuilder();
appendIfNotNull(sb, layout.getPresentationFooter());
appendIfNotNull(sb, layout.getFileFooter());
return convertToBytes(sb.toString());
}
代码示例来源:origin: io.virtdata/virtdata-lib-realer
@Override
public byte[] footerBytes() {
if (layout == null)
return null;
StringBuilder sb = new StringBuilder();
appendIfNotNull(sb, layout.getPresentationFooter());
appendIfNotNull(sb, layout.getFileFooter());
return convertToBytes(sb.toString());
}
代码示例来源:origin: com.alibaba.citrus.tool/antx-autoexpand
void writeFooter() {
if (layout != null && this.writer != null) {
try {
StringBuilder sb = new StringBuilder();
appendIfNotNull(sb, layout.getPresentationFooter());
appendIfNotNull(sb, layout.getFileFooter());
if (sb.length() > 0) {
writerWrite(sb.toString(), true); // force flush
}
} catch (IOException ioe) {
this.started = false;
addStatus(new ErrorStatus("Failed to write footer for appender named ["
+ name + "].", this, ioe));
}
}
}
代码示例来源:origin: com.alibaba.citrus.tool/antx-autoexpand
String presentationFooter = layout.getPresentationFooter();
if (presentationFooter != null) {
sbuf.append(presentationFooter);
代码示例来源:origin: tony19/logback-android
String presentationFooter = layout.getPresentationFooter();
if (presentationFooter != null) {
sbuf.append(presentationFooter);
代码示例来源:origin: com.hynnet/logback-core
String presentationFooter = layout.getPresentationFooter();
if (presentationFooter != null) {
sbuf.append(presentationFooter);
代码示例来源:origin: ch.qos.logback/core
String presentationFooter = layout.getPresentationFooter();
if (presentationFooter != null) {
sbuf.append(presentationFooter);
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/ch.qos.logback.core
String presentationFooter = layout.getPresentationFooter();
if (presentationFooter != null) {
sbuf.append(presentationFooter);
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
String presentationFooter = layout.getPresentationFooter();
if (presentationFooter != null) {
sbuf.append(presentationFooter);
代码示例来源:origin: io.virtdata/virtdata-lib-realer
String presentationFooter = layout.getPresentationFooter();
if (presentationFooter != null) {
sbuf.append(presentationFooter);
代码示例来源:origin: Nextdoor/bender
String presentationFooter = layout.getPresentationFooter();
if (presentationFooter != null) {
sbuf.append(presentationFooter);
内容来源于网络,如有侵权,请联系作者删除!