code: function(targetLevelObject, message, messageArgs)
    {
      // the message should not be logged if the target
      // level is more verbose than the current level
      if (targetLevelObject.level <= currlevelObject.level)
      {
        // substitute the messageArgs into the message template
        messageArgs.unshift(message);
        message = Util.format.apply(Util, messageArgs);
  
        // truncate the message if it's too long
        if (message.length > messageMaxLength)
        {
          message = message.slice(0, messageMaxLength);
        }
  
        // if needed, add the current time to the front of the message
        if (includeTimestamp)
        {
          message = Util.format(
              '[%s]: %s', moment().format('h:mm:ss.ms A'), message);
        }
  
        // log the message
        logMessage(targetLevelObject.tag, message, bufferMaxLength);
      }
    }
docs: Logs a message at a given level.
  
  @param {Object} targetLevelObject the level at which to log the message.
  @param {String} message the message template.
  @param {String[]} messageArgs any arguments to substitute into the message.