fix: Use custom logger only for production
This commit is contained in:
21
server/config/env/production.js
vendored
21
server/config/env/production.js
vendored
@@ -21,6 +21,8 @@
|
||||
|
||||
const url = require('url');
|
||||
|
||||
const { customLogger } = require('../../utils/logger');
|
||||
|
||||
module.exports = {
|
||||
/**
|
||||
*
|
||||
@@ -243,7 +245,24 @@ module.exports = {
|
||||
*
|
||||
*/
|
||||
|
||||
log: {},
|
||||
log: {
|
||||
/**
|
||||
* Passthrough plain log message(s) to
|
||||
* custom Winston console and file logger.
|
||||
*
|
||||
* Note that Winston's log levels override Sails' log levels.
|
||||
* Refer: https://github.com/winstonjs/winston#logging
|
||||
*/
|
||||
|
||||
inspect: false,
|
||||
custom: customLogger,
|
||||
|
||||
/**
|
||||
* Removes the Sail.js init success logs (ASCII ship art).
|
||||
*/
|
||||
|
||||
noShip: true,
|
||||
},
|
||||
|
||||
http: {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user