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

think-logger3

Package Overview
Dependencies
Maintainers
2
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.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
634
increased by3.93%
Maintainers
2
Weekly downloads
 
Created
Source

think-logger

npm Travis Coveralls David

ThinkJS3.x log module

Installation

npm install think-logger3

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 12 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