packages/browser-sync/lib/logger.js
function(bs, data) {
        if (canLogFileChange(bs, data)) {
            if (data.path[0] === "*") {
                return logger.info(
                    "{cyan:Reloading files that match: {magenta:%s",
                    data.path
                );
            }

            logger.info(
                "{cyan:File event [" + data.event + "] : {magenta:%s",
                data.path
            );
        }
    }
function(bs, data) {
        if (canLogFileChange(bs, data)) {
            if (data.path[0] === "*") {
                return logger.info(
                    "{cyan:Reloading files that match: {magenta:%s",
                    data.path
                );
            }

            logger.info(
                "{cyan:File event [" + data.event + "] : {magenta:%s",
                data.path
            );
        }
    }
function ( bs , data ) { if ( canLogFileChange ( bs , data ) ) { if ( data . path [ 0 ] === "*" ) { return logger . info ( "{cyan:Reloading files that match: {magenta:%s" , data . path ) ; } logger . info ( "{cyan:File event [" + data . event + "] : {magenta:%s" , data . path ) ; } }
Log when a file changes
@param {BrowserSync} bs
@param data
Log when a file changes