Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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

  • 2.2.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-40%
Maintainers
2
Weekly downloads
 
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