Set max size for log files; move logs into folder; ignore logs folder.
This commit is contained in:
parent
1a6f5d39c4
commit
610dfd9cd6
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,3 @@
|
||||
node_modules
|
||||
db
|
||||
*.log
|
||||
logs
|
||||
|
@ -7,7 +7,7 @@ var fs = require("fs");
|
||||
var bodyParser = require("body-parser");
|
||||
var app = express();
|
||||
var winston = require('winston');
|
||||
winston.add(winston.transports.File, { filename: 'courtsopen.log' });
|
||||
winston.add(winston.transports.File, { filename: './logs/courtsopen.log', maxsize: 5000000 }); // 5MB
|
||||
|
||||
// Setup email
|
||||
var transporter = nodemailer.createTransport({
|
||||
|
Loading…
Reference in New Issue
Block a user