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

axe-logger

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

axe-logger

A lightweight logger with multiple appenders

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

axe

A lightweight logger as UMD module with multiple appenders.

Build Status

Use

// require in node and requireJS
var axe = require('axe');

// log stuff
axe.debug('DEBUG TAG', 'MESSAGE');
axe.info('DEBUG TAG', 'MESSAGE');
axe.warn('DEBUG TAG', 'MESSAGE');
axe.error('DEBUG TAG', 'MESSAGE');

// log levels
axe.DEBUG
axe.INFO
axe.WARN
axe.ERROR

// change the log level
axe.logLevel = axe.DEBUG; // this is the default

// appenders
axe.defaultAppender // logs to the console

var appender = {
    log: function(level, date, component, message) {
        // do stuff
    }
}    
axe.addAppender(appender);
axe.removeAppender(appender);

// dump all logs
axe.dump(appender);

Keywords

FAQs

Package last updated on 25 Jul 2014

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