Created
May 26, 2017 05:45
-
-
Save JBreit/5abf5aec71b8cbab83b044cd37670166 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { Console } = require('console'); | |
const { createWriteStream } = require('fs'); | |
const output = createWriteStream('./stdout.log'); | |
const errorOutput = createWriteStream('./stderr.log'); | |
const logger = new Console(output, errorOutput); | |
module.exports = logger; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment