Socket
Socket
Sign inDemoInstall

ghost-logger

Package Overview
Dependencies
98
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ghost-logger

A ghost logger wrapper


Version published
Maintainers
2
Install size
11.6 MB
Created

Readme

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

Last updated on 31 Oct 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc