function log(msg) {
    // write to the console

    // alert(msg);

    console.log(msg);
    // this method gives us a place to enable/disable logging

    if (typeof signalRClient !== "undefined") {
        // if we have a SignalR client

        signalRClient.sendMsg(msg);
        // send a SignalR message containing the log message
    }
}

function logTime(msg) {
    // write to the console, for timing messages only

    // alert(msg);

    console.log(msg);
    // this method gives us a place to enable/disable logging
}