/** * Set the number of Exceptions that can be stored in the buffer before the oldest entries must * be removed. A value of 0 will disable collecting of Exceptions in the buffer. * */ public static void setExceptionBufferSize(int exceptionBufferSize) { params.exceptionBuffer.setBufferSize(exceptionBufferSize); }
/** * Set the number of SQL Statements that can be stored in the buffer before the oldest entries must * be removed. A value of 0 will disable the collection of Exceptions in the buffer. Note if * monitoring is disabled exceptions will also not be put in the buffer. * */ public static void setSQLBufferSize(int sqlBufferSize) { params.sqlBuffer.setBufferSize(sqlBufferSize); }
/** * Set the number of SQL Statements that can be stored in the buffer before the oldest entries must * be removed. A value of 0 will disable the collection of Exceptions in the buffer. Note if * monitoring is disabled exceptions will also not be put in the buffer. */ public void setSQLBufferSize(int sqlBufferSize) { params.sqlBuffer.setBufferSize(sqlBufferSize); }
/** Set the number of Exceptions that can be stored in the buffer before the oldest entries must * be removed. A value of 0 will disable collecting of Exceptions in the buffer. */ public void setExceptionBufferSize(int exceptionBufferSize) { JAMonBufferListener jaMonBufferListener = getExceptionBufferListener(); if (jaMonBufferListener==null) { return; } jaMonBufferListener.getBufferList().setBufferSize(exceptionBufferSize); }
private void addDefaultListener(Monitor mon) { if (!mon.hasListeners()) { Log4jBufferListener listener = new Log4jBufferListener(); listener.getBufferList().setBufferSize(bufferSize); mon.addListener("value", listener); } }