Created
August 18, 2017 02:56
-
-
Save unicodeveloper/9fcffeac01b6ae084c63dbad732c5a00 to your computer and use it in GitHub Desktop.
This file contains 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
import Logger from ‘logdna’; | |
import env from ‘node-env-file’; | |
env(‘.env’); | |
/* | |
Setup LogDNA for logging | |
We will be using LogDNA resource from https://manifold.co | |
*/ | |
const logOptions = { | |
app: ‘Notes Backend API’, | |
}; | |
logOptions.index_meta = true; | |
const logger = Logger.setupDefaultLogger(process.env.LOGDNA_KEY, logOptions); | |
export default logger; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment