Skip to content

Commit

Permalink
Fix missing newline in file log example.
Browse files Browse the repository at this point in the history
  • Loading branch information
twang2218 committed Jan 19, 2016
1 parent 2070dcc commit 24d7d6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ var fs = require('fs');
var logger = require('tracer').console({
transport : function(data) {
console.log(data.output);
fs.appendFile('./file.log', data.output, (err) => {
fs.appendFile('./file.log', data.output + '\n', (err) => {
if (err) throw err;
});
}
Expand Down Expand Up @@ -337,7 +337,7 @@ var fs = require('fs');
var logger = require('tracer').console({
transport: [
function (data) {
fs.appendFile('./file.log', data.output, (err) => {
fs.appendFile('./file.log', data.output + '\n', (err) => {
if (err) throw err;
});
},
Expand Down

0 comments on commit 24d7d6c

Please sign in to comment.