node-og

1.0.0-rc3 • Public • Published

node-og

A mini logging module.

yarn add node-og

Usage

Setup

test-og.js
const og = require('node-og')({
  logPath: 'path/to/og/to',
  logFile: 'og_file.txt'
})

og.enable(process.stdout)

console.info('Hi, logs!')

og.disable(process.stdout)

console.info('Bye, logs!')

Output

og_file.txt
Hi, logs!

Readme

Keywords

none

Package Sidebar

Install

npm i node-og

Weekly Downloads

1

Version

1.0.0-rc3

License

MIT

Unpacked Size

3.6 kB

Total Files

6

Last publish

Collaborators

  • l3l_aze