New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

logrc

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logrc

simple json log writer.

latest
Source
npmnpm
Version
0.0.7
Version published
Weekly downloads
11
1000%
Maintainers
1
Weekly downloads
 
Created
Source

Logrc

Simple JSON log.

install

npm i logrc

Simple call


new log = new (require('logrc')).base('some.log');

Stamped call


new log = (require('logrc')).stamped(dir, file);

dated call


new log = (require('logrc')).dated(dir, file);

log

log.log({
   process : 'something',
   message : 'some message'
});

log.log({
   process : 'something',
   message : 'other message'
});

Example


new log = new (require('logrc')).base('some.log');
log.log({
   process : 'something',
   message : 'some message'
});

log.log({
   process : 'something',
   message : 'other message'
});

That's all folks !

FAQs

Package last updated on 04 Sep 2021

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