lib/logger.js
function queryTransport(transport, next) {
        if (options.query) {
            options.query = transport.formatQuery(query);
        }

        transport.query(options, function (err, results) {
            if (err) {
                return next(err);
            }

            next(null, transport.formatResults(results, options.format));
        });
    }
function queryTransport(transport, next) {
        if (options.query) {
            options.query = transport.formatQuery(query);
        }

        transport.query(options, function (err, results) {
            if (err) {
                return next(err);
            }

            next(null, transport.formatResults(results, options.format));
        });
    }
function queryTransport ( transport , next ) { if ( options . query ) { options . query = transport . formatQuery ( query ) ; } transport . query ( options , function ( err , results ) { if ( err ) { return next ( err ) ; } next ( null , transport . formatResults ( results , options . format ) ) ; } ) ; }
Helper function to query a single transport
Helper function to query a single transport