mirror of
https://github.com/plankanban/planka.git
synced 2025-12-21 17:25:39 +03:00
feat: Modify logger to log to file that supports fail2ban (#284)
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
* https://sailsjs.com/docs/concepts/logging
|
||||
*/
|
||||
|
||||
const { customLogger } = require('../utils/logger');
|
||||
|
||||
module.exports.log = {
|
||||
/**
|
||||
*
|
||||
@@ -22,5 +24,20 @@ module.exports.log = {
|
||||
* You may also set the level to "silent" to suppress all logs.
|
||||
*
|
||||
*/
|
||||
// level: 'info',
|
||||
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
custom: customLogger,
|
||||
inspect: false,
|
||||
|
||||
/**
|
||||
* Removes the Sail.js init success logs
|
||||
* (ASCII ship art) for production instances.
|
||||
*/
|
||||
noShip: process.env.NODE_ENV === 'production',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user