function getConsoleMethodName_(level) {
    if (level) {
      if (level.value >= goog.log.Level.SEVERE.value) {
        // SEVERE == 1000, SHOUT == 1200
        return 'error';
      }
      if (level.value >= goog.log.Level.WARNING.value) {
        return 'warn';
      }
      // NOTE(martone): there's a goog.log.Level.INFO - that we should
      // presumably map to console.info. However, the current mapping is INFO ->
      // console.log. Let's keep the status quo for now, but we should
      // reevaluate if we tweak the goog.log API.
      if (level.value >= goog.log.Level.CONFIG.value) {
        return 'log';
      }
    }
    return 'debug';
  }
@param {?goog.log.Level} level
@return {string}