Set max size for log files; move logs into folder; ignore logs folder.

This commit is contained in:
jkaplon 2015-12-09 13:44:33 -05:00
parent 1a6f5d39c4
commit 610dfd9cd6
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
node_modules
db
*.log
logs

View File

@ -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({