/** 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(); } } }
/** Actual writing occurs here. <p>Most subclasses of <code>WriterAppender</code> will need to override this method. @since 0.9.0 */ protected void subAppend(LoggingEvent event) { this.qw.write(this.layout.format(event)); if(layout.ignoresThrowable()) { String[] s = event.getThrowableStrRep(); if (s != null) { int len = s.length; for(int i = 0; i < len; i++) { this.qw.write(s[i]); this.qw.write(Layout.LINE_SEP); } } } if(shouldFlush(event)) { 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(); } } }
/** Actual writing occurs here. <p>Most subclasses of <code>WriterAppender</code> will need to override this method. @since 0.9.0 */ protected void subAppend(LoggingEvent event) { this.qw.write(this.layout.format(event)); if(layout.ignoresThrowable()) { String[] s = event.getThrowableStrRep(); if (s != null) { int len = s.length; for(int i = 0; i < len; i++) { this.qw.write(s[i]); this.qw.write(Layout.LINE_SEP); } } } if(this.immediateFlush) { this.qw.flush(); } }
@Override public void flush() { if (qw != null) { qw.flush(); } }
@Override public void flush() { if (qw != null) { qw.flush(); } }
/** Actual writing occurs here. <p>Most subclasses of <code>WriterAppender</code> will need to override this method. @since 0.9.0 */ protected void subAppend(LoggingEvent event) { this.qw.write(this.layout.format(event)); if(layout.ignoresThrowable()) { String[] s = event.getThrowableStrRep(); if (s != null) { int len = s.length; for(int i = 0; i < len; i++) { this.qw.write(s[i]); this.qw.write(Layout.LINE_SEP); } } } if(shouldFlush(event)) { this.qw.flush(); } }
@Override public void flush() { if (qw != null) { qw.flush(); } }
@Override public void flush() { if (qw != null) { qw.flush(); } }
@Override public void flush() { if (qw != null) { qw.flush(); } }
@Override public void flush() { if (qw != null) { qw.flush(); } }
@Override public void flush() { if (qw != null) { qw.flush(); } }
@Override public void flush() { if (qw != null) { qw.flush(); } }
@Override public void flush() { if (qw != null) { 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(); } } }
/** * Wraps the ANSI control characters around the * output from the super-class Appender. */ @Override protected void subAppend(LoggingEvent event) { this.qw.write(getColour(event.getLevel())); super.subAppend(event); this.qw.write(END_COLOUR); if (this.immediateFlush) { this.qw.flush(); } }
@Override protected void subAppend(LoggingEvent event) { GelfMessage gelf = GelfMessageFactory.makeMessage(layout, event, this); this.qw.write(gelf.toJson()); this.qw.write(Layout.LINE_SEP); if (this.immediateFlush) { this.qw.flush(); } } }
@Override protected void subAppend(LoggingEvent event) { GelfMessage gelf = GelfMessageFactory.makeMessage(layout, event, this); this.qw.write(gelf.toJson()); this.qw.write(Layout.LINE_SEP); if (this.immediateFlush) { this.qw.flush(); } } }