async function search( collection, matchCriteria ) {	
	try {
    	
		if( !collection ) { throw new Error('No collection to search'); }
		if( !matchCriteria ) { throw new Error('No matchCriteria to search by'); }
    	return await cache.get(logDB, collection, matchCriteria);
    	
	} catch(e) { 
		throw e; 
	}
}
/**
 * Search logs
 *
 * Params
 * @collection - collection to search
 * @matchCriteria - match criteria object
 */
Search logs
Params
@collection - collection to search
@matchCriteria - match criteria object
Search logs Params @collection - collection to search @matchCriteria - match criteria object
async function search( collection, matchCriteria ) {	
	try {
		if( !collection ) { throw new Error('No collection to search'); }
		if( !matchCriteria ) { throw new Error('No matchCriteria to search by'); }
    	return await cache.get(logDB, collection, matchCriteria);
	} catch(e) { 
		throw e; 
	}
}
async function search ( collection , matchCriteria ) { try { if ( ! collection ) { throw new Error ( 'No collection to search' ) ; } if ( ! matchCriteria ) { throw new Error ( 'No matchCriteria to search by' ) ; } return await cache . get ( logDB , collection , matchCriteria ) ; } catch ( e ) { throw e ; } }
Search logs
 Params
 @collection - collection to search
 @matchCriteria - match criteria object
Search logs Params @collection - collection to search @matchCriteria - match criteria object