Ghost Logger
Installation
npm i ghost-logger --save
Overview
This module is a generic logger for winston console, logentries, loggly, and new relic. Provides a simple console.LEVEL
like interface to log in your app with.
Configuration information can be found below.
Logger
const GhostLogger = ;const logger = config; logger;
Config
-
blacklist
[ARRAY] Blacklisted Attributes to remove from logs -
console
: -
loggly
: -
logentries
:enabled
[BOOLEAN] will only log if set to truetoken
[STRING] your logentries api tokenconsole
[BOOLEAN] if set to true, will also log to the console
-
newrelic
:
Example config file