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

@qantas-assure/logger

Package Overview
Dependencies
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qantas-assure/logger

A logger for Node

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by50%
Maintainers
4
Weekly downloads
 
Created
Source

Logger by Qantas Loyalty

A lightweight logger for node servers or client side dev.

Why use this package?

It enables meaningful and granular logging for serverside JS

e.g.

[logic:fetchCmsData] cms cache miss: cmsData
[logic:fetchCmsData] successfully saved cms cache cmsData
[logic:fetchCmsData] cms cache hit: cmsData
[server] cache reset
[logic:fetchCmsData] successfully saved cms cache cmsData

It also has sentry.io logging built in.

Getting started

npm install @qantas-assure/logger --save

OR

yarn add @qantas-assure/logger

Usage

import Logger from '@qantas-assure/logger';

const options = {
	logLevel: 'info', // one of 'log', 'info', 'warn', 'error'
    appEnv: 'development', // process.env.NODE_ENV
    sentryEnabled: false, // if you're using sentry, enable logging with raven-js - https://docs.sentry.io/clients/javascript/
};
const log = new Logger('Component Name', options);

FAQs

Package last updated on 28 Feb 2018

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