src/utils/HealthLogger.js
function searchDone(searchType) {
        var searchDetails = getHealthDataLog("searchDetails");
        if (!searchDetails) {
            searchDetails = {};
        }
        if (!searchDetails[searchType]) {
            searchDetails[searchType] = 0;
        }
        searchDetails[searchType]++;
        setHealthDataLog("searchDetails", searchDetails);
    }
function searchDone(searchType) {
        var searchDetails = getHealthDataLog("searchDetails");
        if (!searchDetails) {
            searchDetails = {};
        }
        if (!searchDetails[searchType]) {
            searchDetails[searchType] = 0;
        }
        searchDetails[searchType]++;
        setHealthDataLog("searchDetails", searchDetails);
    }
function searchDone ( searchType ) { var searchDetails = getHealthDataLog ( "searchDetails" ) ; if ( ! searchDetails ) { searchDetails = { } ; } if ( ! searchDetails [ searchType ] ) { searchDetails [ searchType ] = 0 ; } searchDetails [ searchType ] ++ ; setHealthDataLog ( "searchDetails" , searchDetails ) ; }
Increments health log count for a particular kind of search done
@param {string} searchType The kind of search type that needs to be logged- should be a js var compatible string
Increments health log count for a particular kind of search done