🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
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
Version published
Weekly downloads
29
-48.21%
Maintainers
1
Weekly downloads
 
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

logging

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