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

tiny-log

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tiny-log

a tiny logger

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

NPM version Build status Test coverage License Dependency status

tiny-log

a tiny logger for node.js, base on logfilestream

example

const tinyLog = require('tiny-log');
const logger = tinyLog({
  std: true,
  name: 'example',
  dir: __dirname,
  duration: 60000,
  levels: ['log', 'info', 'error']
});

logger.log('example');
logger.info('hello world');
logger.error(new Error('example'));
options
  • dir - log file dir
  • name - log file name prefix, default ''
  • std - output to std ? default false
  • file - output to file ? default true
  • trace - trace stack, default false
  • boundary - log boundary, default os.EOL
  • levels - log levels, default ['info', 'error']
  • duration - log file duration, default 86400000, one day

License

MIT

Keywords

FAQs

Package last updated on 15 Jul 2015

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