index.js
/**
 * Log event
 * @param path - a string representation of the lookup
 * @param eventType - event type from EVENT_TYPES enum
 * @param defaultValue - default when data is absent, also used to check type
 * @param logType - logger method to use
 */
Log event
@param path - a string representation of the lookup
@param eventType - event type from EVENT_TYPES enum
@param defaultValue - default when data is absent, also used to check type
@param logType - logger method to use
Log event @param path - a string representation of the lookup @param eventType - event type from EVENT_TYPES enum @param defaultValue - default when data is absent also used to check type @param logType - logger method to use
function log(eventType, path, defaultValue, logType) {
    if (logger[logType]) {
        logger[logType]('event: %s, path: %s, default: %s', eventType, path, defaultValue);
    }
}
function log ( eventType , path , defaultValue , logType ) { if ( logger [ logType ] ) { logger [ logType ] ( 'event: %s, path: %s, default: %s' , eventType , path , defaultValue ) ; } }
Log event
 @param path - a string representation of the lookup
 @param eventType - event type from EVENT_TYPES enum
 @param defaultValue - default when data is absent, also used to check type
 @param logType - logger method to use
Log event @param path - a string representation of the lookup @param eventType - event type from EVENT_TYPES enum @param defaultValue - default when data is absent also used to check type @param logType - logger method to use