code: function writeToLog(level, msg)
      {
          var displayPrefix = "PK-" + pkGuid + ": ";
          if(loggingMechanism && logUserObject)
          {
              loggingMechanism.addLog(level, displayPrefix + msg, logUserObject);
          }
          else
          {
              console.log(displayPrefix + msg);
          }
      }
docs: Wrapper around logging mechanism's addLog method
  
  @private
  @param level
  @param {string} msg