Socket
Socket
Sign inDemoInstall

angie-log

Package Overview
Dependencies
226
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    angie-log

Standalone terminal and outfile logger designed for the Angie MVC


Version published
Weekly downloads
5
decreased by-16.67%
Maintainers
1
Install size
15.6 MB
Created
Weekly downloads
 

Readme

Source

Angie Log

This is a very slim terminal and outfile logger for iojs/NodeJS ES6 projects. It will work standalone, or as an extension to the Angie MVC.

build status iojs support node support code coverage npm downloads

NPM

Usage

npm i -g angie-log
import {default as Log} from 'angie-log';

// Call a new logger with defaults
let log = new Log({
    outfile:    'log.log',  // defaults to p.cwd() + '/angie.log'
    file:       'log.log',
    timestamp:  true,
    level:      'debug',    // info, debug, warn, error
    silent:     false
});

// Output to log.log
log.logger('test');

// $setOutfile to change the output file
log.$setOutfile(`${process.cwd()}/angie.log`);

// $setTimestamp to toggle timestamps in the log output
log.$setTimestamp(true);

// $setLevel to change the log level
log.$setLevel(true);

// $setSilent to prevent terminal output
log.$setSilent(true);

// Explicitly call the prettified terminal output
Log.info('test');
Log.debug('test');
Log.warn('test');
Log.error('test');

Angie

Please see the site for news, a quickstart guide, and documentation and the CHANGELOG for an up to date list of changes.

Keywords

FAQs

Last updated on 24 Aug 2015

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc