mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
feat: Modify logger to log to file that supports fail2ban (#284)
This commit is contained in:
parent
5a27ac0f03
commit
fe5fe5fab7
12 changed files with 427 additions and 7844 deletions
|
@ -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',
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue