Skip to content

Instantly share code, notes, and snippets.

@unicodeveloper
Created August 18, 2017 02:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unicodeveloper/9fcffeac01b6ae084c63dbad732c5a00 to your computer and use it in GitHub Desktop.
Save unicodeveloper/9fcffeac01b6ae084c63dbad732c5a00 to your computer and use it in GitHub Desktop.
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