mirror of
https://github.com/mmumshad/ansible-playable.git
synced 2025-03-09 23:38:54 +00:00
Implement Express server logging
This commit is contained in:
parent
14e0c77521
commit
49c56d65d6
4 changed files with 30 additions and 1 deletions
|
@ -4,6 +4,14 @@
|
|||
|
||||
var winston = require('winston');
|
||||
|
||||
winston.add(winston.transports.File, {filename: './logs/server.log', json: false, colorize: true});
|
||||
import config from '../../config/environment';
|
||||
|
||||
winston.add(winston.transports.File, {
|
||||
filename: config.paths.local_server_logfile,
|
||||
json: false,
|
||||
colorize: true,
|
||||
maxsize: '10485760',
|
||||
maxFiles: '10'
|
||||
});
|
||||
|
||||
module.exports = winston;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue