/** 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; } } }
/** 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(); } } }
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 ); }
/** 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; } } }
t = layout.getFooter(); if(t != null) { sbuf.append(t);
/** 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; } } }
/** 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(); } } }
/** 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(); } } }
t = layout.getFooter(); if(t != null) { sbuf.append(t);
public String getFooter() { PaxLayout layout = (PaxLayout) m_tracker.getService(); if (layout != null) { return layout.getFooter(); } return m_fallback.getFooter(); } }
public String getFooter() { PaxLayout layout = (PaxLayout) m_tracker.getService(); if (layout != null) { return layout.getFooter(); } return m_fallback.getFooter(); } }
/** 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; } } }
/** 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; } } }
/** 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(); } } }
/** 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(); } } }
/** 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(); } } }
/** 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(); } } }
/** 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(); } } }
/** 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(); } } }
/** 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(); } } }