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

pa-logging-client_hosting

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pa-logging-client_hosting

Logging client for Pacifica system, uses logentries logging client to beam logs to the cloud.

  • 1.0.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Logging Client

Build status

pa-logging-client is a micro dependency to facilitate logging inside the Pacifica system. It acts as a thin wrapper for winston configuring it to behave as needed and returning an instance of a winston logger to the consumer. In local development the logger only writes to the console. When set to an environment other than local and provided a valid log entries API token, this logging client will log everything to log entries. Additional information about winston and it's capabilities can be found here.

Installation

Run this command in a terminal session to add pa-logging-client to your project:

npm install --save git+ssh://git@github.com:Mindflash/pa-logging-client.git

API

The logger module should be invoked when the hapi server is initialized with these arguments:

  • token: An api token for a log entries application logger.
// index.js or bootstrap.js
const logger = require('pa-logging-client').init();

logger.then(() => {
  console.log('Logger is setup');
});

// some/other/file.js
const logger = require('pa-logging-client').get();
logger.info('Log this thing');

FAQs

Package last updated on 07 Mar 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