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

lalog

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lalog

Logging aggregation and distribution

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
74
increased by80.49%
Maintainers
1
Weekly downloads
 
Created
Source

lalog

Greenkeeper badge

Logging aggregation and distribution

Installation

npm i lalog --save

Usage

Setup

If logging to Loggly then these environment variables need to be set:

process.env.LOGGLY_TOKEN
process.env.LOGGLY_SUBDOMAIN

Create a Logger

Require the Logger class:

const Logger = require('lalog');

Create a logger:

const logger = Logger.create({
  serviceName: 'service-name',
  moduleName: 'module-name',
});

or

const logger = new Logger({
  serviceName: 'service-name',
  moduleName: 'module-name',
});

lalog uses debug as one of its destinations. The serviceName and moduleName props allow you to filter debug messages.

Write Log Messages

logger.trace({
  message: 'I am a message'
});

Keywords

FAQs

Package last updated on 03 Jun 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