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

think-logger3

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

think-logger3

logger for ThinkJS 3.x

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
669
increased by6.19%
Maintainers
1
Weekly downloads
 
Created
Source

think-logger

npm Travis Coveralls David

ThinkJS3.x log module

Installation

npm install think-logger

How To Use

const Logger = require('think-logger');

let logger = new Logger();
logger.debug('Hello World');

Advanced

If you want to log file, you can use file adapter like this:

const Logger = require('think-logger');

let logger = new Logger({
  handle: Logger.File,
  filename: __dirname + '/test.log'
});
logger.debug('Hello World');

There has four log function you can use:

logger.info('info log');
logger.debug('debug log');
logger.warn('warn log');
logger.error('error log');

Other Adapters

Keywords

FAQs

Package last updated on 02 Mar 2017

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