buffer.add(event);
/** The <b>BufferSize</b> option takes a positive integer representing the maximum number of logging events to collect in a cyclic buffer. When the <code>BufferSize</code> is reached, oldest events are deleted as new events are added to the buffer. By default the size of the cyclic buffer is 512 events. */ public void setBufferSize(int bufferSize) { this.bufferSize = bufferSize; cb.resize(bufferSize); }
synchronized public void close() { this.closed = true; if (sendOnClose && cb.length() > 0) { sendBuffer(); } }
/** * The <b>BufferSize</b> option takes a positive integer representing the number of events this appender will buffer and send to newly connected * clients. */ public void setBufferSize(int _bufferSize) { buffer = new CyclicBuffer(_bufferSize); }
/** * Returns value of the <b>bufferSize</b> option. */ public int getBufferSize() { if (buffer == null) { return 0; } else { return buffer.getMaxSize(); } }
if (buffer != null && buffer.length() > 0) { sendCachedEvents(oos);
/** * The <b>BufferSize</b> option takes a positive integer representing the number of events this appender will buffer and send to newly connected * clients. */ public void setBufferSize(int _bufferSize) { buffer = new CyclicBuffer(_bufferSize); }
/** * Returns value of the <b>bufferSize</b> option. */ public int getBufferSize() { if (buffer == null) { return 0; } else { return buffer.getMaxSize(); } }
/** Perform SMTPAppender specific appending actions, mainly adding the event to a cyclic buffer and checking if the event triggers an e-mail to be sent. */ public void append(LoggingEvent event) { if(!checkEntryConditions()) { return; } event.getThreadName(); event.getNDC(); event.getMDCCopy(); if(locationInfo) { event.getLocationInformation(); } event.getRenderedMessage(); event.getThrowableStrRep(); cb.add(event); if(evaluator.isTriggeringEvent(event)) { sendBuffer(); } }
/** The <b>BufferSize</b> option takes a positive integer representing the maximum number of logging events to collect in a cyclic buffer. When the <code>BufferSize</code> is reached, oldest events are deleted as new events are added to the buffer. By default the size of the cyclic buffer is 512 events. */ public void setBufferSize(int bufferSize) { this.bufferSize = bufferSize; cb.resize(bufferSize); }
synchronized public void close() { this.closed = true; if (sendOnClose && cb.length() > 0) { sendBuffer(); } }
/** * The <b>BufferSize</b> option takes a positive integer representing the number of events this appender will buffer and send to newly connected * clients. */ public void setBufferSize(int _bufferSize) { buffer = new CyclicBuffer(_bufferSize); }
/** * Returns value of the <b>bufferSize</b> option. */ public int getBufferSize() { if (buffer == null) { return 0; } else { return buffer.getMaxSize(); } }
buffer.add(event);
/** The <b>BufferSize</b> option takes a positive integer representing the maximum number of logging events to collect in a cyclic buffer. When the <code>BufferSize</code> is reached, oldest events are deleted as new events are added to the buffer. By default the size of the cyclic buffer is 512 events. */ public void setBufferSize(int bufferSize) { this.bufferSize = bufferSize; cb.resize(bufferSize); }
if (buffer != null && buffer.length() > 0) { sendCachedEvents(oos);
/** * The <b>BufferSize</b> option takes a positive integer representing the number of events this appender will buffer and send to newly connected * clients. */ public void setBufferSize(int _bufferSize) { buffer = new CyclicBuffer(_bufferSize); }