src/teamcity_reporter.js
function tclog(message, attrs) {
            var str = "##teamcity[" + message;
            if (typeof(attrs) === "object") {
                if (!("timestamp" in attrs)) {
                    attrs.timestamp = new Date();
                }
                for (var prop in attrs) {
                    if (attrs.hasOwnProperty(prop)) {
                        if(delegates.modifySuiteName && message.indexOf("testSuite") === 0 && prop === "name") {
                            attrs[prop] = delegates.modifySuiteName(attrs[prop]);
                        }
                        str += " " + prop + "='" + escapeTeamCityString(attrs[prop]) + "'";
                    }
                }
            }
            str += "]";
            log(str);
        }
function tclog(message, attrs) {
            var str = "##teamcity[" + message;
            if (typeof(attrs) === "object") {
                if (!("timestamp" in attrs)) {
                    attrs.timestamp = new Date();
                }
                for (var prop in attrs) {
                    if (attrs.hasOwnProperty(prop)) {
                        if(delegates.modifySuiteName && message.indexOf("testSuite") === 0 && prop === "name") {
                            attrs[prop] = delegates.modifySuiteName(attrs[prop]);
                        }
                        str += " " + prop + "='" + escapeTeamCityString(attrs[prop]) + "'";
                    }
                }
            }
            str += "]";
            log(str);
        }
function tclog ( message , attrs ) { var str = "##teamcity[" + message ; if ( typeof ( attrs ) === "object" ) { if ( ! ( "timestamp" in attrs ) ) { attrs . timestamp = new Date ( ) ; } for ( var prop in attrs ) { if ( attrs . hasOwnProperty ( prop ) ) { if ( delegates . modifySuiteName && message . indexOf ( "testSuite" ) === 0 && prop === "name" ) { attrs [ prop ] = delegates . modifySuiteName ( attrs [ prop ] ) ; } str += " " + prop + "='" + escapeTeamCityString ( attrs [ prop ] ) + "'" ; } } } str += "]" ; log ( str ) ; }
shorthand for logging TeamCity messages defined here because it needs access to the `delegates` closure variable
shorthand for logging TeamCity messages defined here because it needs access to the delegates closure variable