code: function attachConsole(options) {
      var appender = {
          type: 'console',
          layout: extend({}, options.layout)
      };
  
      if (appender.layout.type === 'pattern' && options.layout.pattern) {
          // 给终端的level加个颜色～
          appender.layout.pattern = options.layout.pattern.replace(/\[%p\]/g, '[%[%p%]]');
      }
  
      config.appenders.push(appender);
  }
docs: 附加console日志
  
  @inner
  @param {Object} options 日志配置参数