org.apache.log4j.Layout.getFooter()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(104)

本文整理了Java中org.apache.log4j.Layout.getFooter()方法的一些代码示例,展示了Layout.getFooter()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Layout.getFooter()方法的具体详情如下:
包路径:org.apache.log4j.Layout
类名称:Layout
方法名:getFooter

Layout.getFooter介绍

[英]Returns the footer for the layout format. The base class returns null.
[中]返回布局格式的页脚。基类返回null

代码示例

代码示例来源:origin: log4j/log4j

/**
  Release any resources held by this SyslogAppender.
  @since 0.8.4
 */
synchronized
public
void close() {
 closed = true;
 if (sqw != null) {
   try {
     if (layoutHeaderChecked && layout != null && layout.getFooter() != null) {
       sendLayoutMessage(layout.getFooter());
     }
     sqw.close();
     sqw = null;
   } catch(java.io.InterruptedIOException e) {
     Thread.currentThread().interrupt();
     sqw = null;
   } catch(IOException e) {
     sqw = null;
   }
 }
}

代码示例来源:origin: log4j/log4j

/**
  Write a footer as produced by the embedded layout's {@link
  Layout#getFooter} method.  */
protected
void writeFooter() {
 if(layout != null) {
  String f = layout.getFooter();
  if(f != null && this.qw != null) {
 this.qw.write(f);
 this.qw.flush();
  }
 }
}

代码示例来源:origin: pentaho/pentaho-kettle

protected void endJob() {
 try {
  outputStream.write( writeAppender.getLayout().getFooter().getBytes() );
 } catch ( Exception e ) {
  System.out.println( e );
  // Don't try logging a log error.
 }
 logger.removeAppender( logName );
}

代码示例来源:origin: cloudfoundry/uaa

/**
 Release any resources held by this SyslogAppender.
 @since 0.8.4
 */
synchronized
public
void close() {
  closed = true;
  if (sqw != null) {
    try {
      if (layoutHeaderChecked && layout != null && layout.getFooter() != null) {
        sendLayoutMessage(layout.getFooter());
      }
      sqw.close();
      sqw = null;
    } catch(java.io.InterruptedIOException e) {
      Thread.currentThread().interrupt();
      sqw = null;
    } catch(IOException e) {
      sqw = null;
    }
  }
}

代码示例来源:origin: log4j/log4j

t = layout.getFooter();
if(t != null) {
 sbuf.append(t);

代码示例来源:origin: apache/log4j

/**
  Release any resources held by this SyslogAppender.
  @since 0.8.4
 */
synchronized
public
void close() {
 closed = true;
 if (sqw != null) {
   try {
     if (layoutHeaderChecked && layout != null && layout.getFooter() != null) {
       sendLayoutMessage(layout.getFooter());
     }
     sqw.close();
     sqw = null;
   } catch(java.io.InterruptedIOException e) {
     Thread.currentThread().interrupt();
     sqw = null;
   } catch(IOException e) {
     sqw = null;
   }
 }
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
  Write a footer as produced by the embedded layout's {@link
  Layout#getFooter} method.  */
protected
void writeFooter() {
 if(layout != null) {
  String f = layout.getFooter();
  if(f != null && this.qw != null) {
 this.qw.write(f);
 this.qw.flush();
  }
 }
}

代码示例来源:origin: apache/log4j

/**
  Write a footer as produced by the embedded layout's {@link
  Layout#getFooter} method.  */
protected
void writeFooter() {
 if(layout != null) {
  String f = layout.getFooter();
  if(f != null && this.qw != null) {
 this.qw.write(f);
 this.qw.flush();
  }
 }
}

代码示例来源:origin: apache/log4j

t = layout.getFooter();
if(t != null) {
 sbuf.append(t);

代码示例来源:origin: org.ops4j.pax.logging/pax-logging-service

public String getFooter()
  {
    PaxLayout layout = (PaxLayout) m_tracker.getService();
    if (layout != null)
    {
      return layout.getFooter();
    }
    return m_fallback.getFooter();
  }
}

代码示例来源:origin: ops4j/org.ops4j.pax.logging

public String getFooter()
  {
    PaxLayout layout = (PaxLayout) m_tracker.getService();
    if (layout != null)
    {
      return layout.getFooter();
    }
    return m_fallback.getFooter();
  }
}

代码示例来源:origin: org.apache/log4j

/**
  Release any resources held by this SyslogAppender.
  @since 0.8.4
 */
synchronized
public
void close() {
 closed = true;
 if (sqw != null) {
   try {
     if (layoutHeaderChecked && layout != null && layout.getFooter() != null) {
       sendLayoutMessage(layout.getFooter());
     }
     sqw.close();
     sqw = null;
   } catch(java.io.IOException ex) {
     sqw = null;
   }
 }
}

代码示例来源:origin: apache-log4j/log4j

/**
  Release any resources held by this SyslogAppender.
  @since 0.8.4
 */
synchronized
public
void close() {
 closed = true;
 if (sqw != null) {
   try {
     if (layoutHeaderChecked && layout != null && layout.getFooter() != null) {
       sendLayoutMessage(layout.getFooter());
     }
     sqw.close();
     sqw = null;
   } catch(java.io.IOException ex) {
     sqw = null;
   }
 }
}

代码示例来源:origin: org.apache.activemq/activemq-all

/**
  Write a footer as produced by the embedded layout's {@link
  Layout#getFooter} method.  */
protected
void writeFooter() {
 if(layout != null) {
  String f = layout.getFooter();
  if(f != null && this.qw != null) {
 this.qw.write(f);
 this.qw.flush();
  }
 }
}

代码示例来源:origin: org.apache.log4j/com.springsource.org.apache.log4j

/**
  Write a footer as produced by the embedded layout's {@link
  Layout#getFooter} method.  */
protected
void writeFooter() {
 if(layout != null) {
  String f = layout.getFooter();
  if(f != null && this.qw != null) {
 this.qw.write(f);
 this.qw.flush();
  }
 }
}

代码示例来源:origin: apache-log4j/log4j

/**
  Write a footer as produced by the embedded layout's {@link
  Layout#getFooter} method.  */
protected
void writeFooter() {
 if(layout != null) {
  String f = layout.getFooter();
  if(f != null && this.qw != null) {
 this.qw.write(f);
 this.qw.flush();
  }
 }
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.apache.log4j

/**
  Write a footer as produced by the embedded layout's {@link
  Layout#getFooter} method.  */
protected
void writeFooter() {
 if(layout != null) {
  String f = layout.getFooter();
  if(f != null && this.qw != null) {
 this.qw.write(f);
 this.qw.flush();
  }
 }
}

代码示例来源:origin: org.jboss.logmanager/log4j-jboss-logmanager

/**
  Write a footer as produced by the embedded layout's {@link
  Layout#getFooter} method.  */
protected
void writeFooter() {
 if(layout != null) {
  String f = layout.getFooter();
  if(f != null && this.qw != null) {
 this.qw.write(f);
 this.qw.flush();
  }
 }
}

代码示例来源:origin: org.apache/log4j

/**
  Write a footer as produced by the embedded layout's {@link
  Layout#getFooter} method.  */
protected
void writeFooter() {
 if(layout != null) {
  String f = layout.getFooter();
  if(f != null && this.qw != null) {
 this.qw.write(f);
 this.qw.flush();
  }
 }
}

代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded

/**
  Write a footer as produced by the embedded layout's {@link
  Layout#getFooter} method.  */
protected
void writeFooter() {
 if(layout != null) {
  String f = layout.getFooter();
  if(f != null && this.qw != null) {
 this.qw.write(f);
 this.qw.flush();
  }
 }
}

相关文章