Socket
Socket
Sign inDemoInstall

ghost-logger

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ghost-logger

A ghost logger wrapper


Version published
Maintainers
2
Created
Source

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 = require('ghost-logger');
const logger = new GhostLogger(config);

logger.info("it's lit", { data: myData });

Config

  • blacklist [ARRAY] Blacklisted Attributes to remove from logs

  • console:

  • loggly:

  • logentries:

    • enabled [BOOLEAN] will only log if set to true
    • token [STRING] your logentries api token
    • console [BOOLEAN] if set to true, will also log to the console
  • newrelic:

Example config file

{
  "enabled": true,
  "logentries": {
    "enabled": true,
    "token": "-- YOUR LOGENTRIES TOKEN --",
    "console": true
  },
  "blacklist": ["password","credit_card"]
}

FAQs

Package last updated on 31 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc