Skip to content

Commit

Permalink
fix: Remove winston-longly requirement in logger.js Fixes #212
Browse files Browse the repository at this point in the history
  • Loading branch information
OstlerDev committed Sep 1, 2015
1 parent d86c82d commit 89791a2
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions logger.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
var Winston = require('winston');
require('winston-loggly');

if (process.argv[2] != undefined){
var level = process.argv[2];
Expand All @@ -24,10 +23,10 @@ function startLogger(LoggingLevel){
json: false,
handleExceptions: true
}),
new (Winston.transports.File)({
filename: __dirname + '/PopcornTV.log',
level: LoggingLevel,
prettyPrint: true,
new (Winston.transports.File)({
filename: __dirname + '/PopcornTV.log',
level: LoggingLevel,
prettyPrint: true,
json: false,
maxsize: 10 * 1024 * 1024,
maxFiles: 3,
Expand All @@ -43,4 +42,4 @@ function startLogger(LoggingLevel){
return logger;
}

module.exports=logger;
module.exports=logger;

0 comments on commit 89791a2

Please sign in to comment.