Skip to content

Soldy/logrc

Repository files navigation

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 !

About

Simple, fast, jsonlog output.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published