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

isologger

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isologger

An isomorphic JavaScript logger

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

IsoLogger

Usage Example


// supports being required or as a standalone script tag
var IsoLogger = require('isologger');
var IsoLoggerWeb = require('isologger-web');

// setup
var logger = new IsoLogger.Logger({
    lineNumbers: true, // don't use in production, only supports V8
    timestamps: true
});
logger.addOutput('debug', new IsoLogger.ConsoleOutput());
logger.addOutput('error', new IsoLoggerWeb.AjaxJQueryOutput());

// usage
logger.info('hello');
logger.error(new Error('My Message'));
logger.warn('Warn about this array', [1, 2, 3]);
logger.log({a: 1});

Keywords

FAQs

Package last updated on 03 Nov 2015

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