function discardLogEntries() {
		var iLogLength =  aLog.length;
		if (iLogLength) {
			var iEntriesToKeep = Math.min(iLogLength, Math.floor(iLogEntriesLimit * 0.7));

			if (oListener) {
				// Notify listener that entries are being discarded
				oListener.onDiscardLogEntries(aLog.slice(0, iLogLength - iEntriesToKeep));
			}

			if (iEntriesToKeep) {
				aLog = aLog.slice(-iEntriesToKeep, iLogLength);
			} else {
				aLog = [];
			}
		}
	}
/**
	 * Discard 30 percent of log entries when the limit is reached
	 */
Discard 30 percent of log entries when the limit is reached
Discard 30 percent of log entries when the limit is reached
function discardLogEntries() {
		var iLogLength =  aLog.length;
		if (iLogLength) {
			var iEntriesToKeep = Math.min(iLogLength, Math.floor(iLogEntriesLimit * 0.7));
			if (oListener) {
				oListener.onDiscardLogEntries(aLog.slice(0, iLogLength - iEntriesToKeep));
			}
			if (iEntriesToKeep) {
				aLog = aLog.slice(-iEntriesToKeep, iLogLength);
			} else {
				aLog = [];
			}
		}
	}
function discardLogEntries ( ) { var iLogLength = aLog . length ; if ( iLogLength ) { var iEntriesToKeep = Math . min ( iLogLength , Math . floor ( iLogEntriesLimit * 0.7 ) ) ; if ( oListener ) { oListener . onDiscardLogEntries ( aLog . slice ( 0 , iLogLength - iEntriesToKeep ) ) ; } if ( iEntriesToKeep ) { aLog = aLog . slice ( - iEntriesToKeep , iLogLength ) ; } else { aLog = [ ] ; } } }
Discard 30 percent of log entries when the limit is reached
Discard 30 percent of log entries when the limit is reached
// Notify listener that entries are being discarded