Skip to content
Browse files

do not forget to use '__dirname' variable for define the path to the …

…file outside of 'require()' function
  • Loading branch information...
1 parent 43f18de commit 3335ef650d9fa490282a21d8e386c6a3ade7c958 @andriykuba committed Jan 14, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 modules/aku-log.js
View
4 modules/aku-log.js
@@ -4,11 +4,11 @@
var winston = require('winston');
function setup(){
- winston.add(winston.transports.File, { filename: 'log/server.log' });
+ winston.add(winston.transports.File, { filename: __dirname+'/../log/server.log' });
winston.handleExceptions(
new winston.transports.File({
- filename: 'log/serverexceptions.log'
+ filename: __dirname+'/../log/serverexceptions.log'
}));
}

0 comments on commit 3335ef6

Please sign in to comment.
Something went wrong with that request. Please try again.