code: function (config, loggerContext) {
      Layout.call(this, config, loggerContext);
      this.pattern = this.config.pattern ||
        PatternLayout.DEFAULT_CONVERSION_PATTERN;
      this.compactObjects = this.config.compactObjects || false;
    }
docs: Lays out a log event using a regexp-like format string.
  
  @constructor
  @extends {Layout}
  @param {Object} config Layout configuration. Structure depends on concrete
  layout class being used
  @param {LoggerContext} loggerContext Reference to the logger context that
  gave birth to this layout.