lib/pigeonkeeper.js
function writeToLog(level, msg)
    {
        var displayPrefix = "PK-" + pkGuid + ": ";
        if(loggingMechanism && logUserObject)
        {
            loggingMechanism.addLog(level, displayPrefix + msg, logUserObject);
        }
        else
        {
            console.log(displayPrefix + msg);
        }
    }
function writeToLog(level, msg)
    {
        var displayPrefix = "PK-" + pkGuid + ": ";
        if(loggingMechanism && logUserObject)
        {
            loggingMechanism.addLog(level, displayPrefix + msg, logUserObject);
        }
        else
        {
            console.log(displayPrefix + msg);
        }
    }
function writeToLog ( level , msg ) { var displayPrefix = "PK-" + pkGuid + ": " ; if ( loggingMechanism && logUserObject ) { loggingMechanism . addLog ( level , displayPrefix + msg , logUserObject ) ; } else { console . log ( displayPrefix + msg ) ; } }
Wrapper around logging mechanism's addLog method

@private
@param level
@param {string} msg
Wrapper around logging mechanism s addLog method