leiyun 3 дней назад
Родитель
Сommit
3c088b839a
2 измененных файлов: 9 добавлений и 2 удалений
  1. +1
    -1
      src/config/adapter.js
  2. +8
    -1
      src/config/adapter.production.js

+ 1
- 1
src/config/adapter.js Просмотреть файл

@@ -90,7 +90,7 @@ exports.view = {
* @type {Object} * @type {Object}
*/ */
exports.logger = { exports.logger = {
type: 'console',
type: isDev ? 'console' : 'dateFile',
console: { console: {
handle: Console handle: Console
}, },


+ 8
- 1
src/config/adapter.production.js Просмотреть файл

@@ -1,6 +1,6 @@
const mysql = require('think-model-mysql'); const mysql = require('think-model-mysql');
const redisCache = require('think-cache-redis'); const redisCache = require('think-cache-redis');
const {Console, File, DateFile} = require('think-logger3');
/** /**
* 生产环境 cache adapter config * 生产环境 cache adapter config
* @type {Object} * @type {Object}
@@ -44,3 +44,10 @@ exports.model = {
// dateStrings: true // dateStrings: true
// } // }
}; };

exports.logger = {
type: 'console',
console: {
handle: Console
}
};

Загрузка…
Отмена
Сохранить