code: function Logger(category) {
      if (category === undefined) {
          throw new Error('Cannot create logger. Log "category" name must be specified.');
      }
      this.category = category;
  
      function stringToLogLevel(logLevelId) {
          if (!logLevelId || logLevelId === '_') {
              return undefined;
          }
          return Level[logLevelId];
      }
  
      // Look for an exact matching category. If not configured, set it to a blank value
      // so as to make it discoverable in the browsers Storage Inspector.
      var logLevelId = categories.get(category);
      if (logLevelId === undefined) {
          categories.set(category, '_');
      }
  
      this.logLevel = stringToLogLevel(logLevelId);
      if (!this.logLevel) {
          logLevelId = categories.get(category, {checkDotParent: LEVEL_PARENTDOTCHECK_CONSTRAINTS});
          this.logLevel = stringToLogLevel(logLevelId);
          if (!this.logLevel) {
              // Default
              this.logLevel = Level.ERROR;
          }
      }
  }
docs: Create a new Logger instance for the specified category.
  @param {string} category The category name. Use dot separated naming convention to create a category hierarchy (ala Log4J).
  @constructor
  @example
  const logging = require('@jenkins-cd/logging');
  const logger = logging.logger('org.jenkinsci.sse');
  
  if (logger.isDebugEnabled()) {
  logger.debug('Log a message for x and y values: ', x , y);
  }