logrc

simple json log writer.

Usage no npm install needed!

<script type="module">
  import logrc from 'https://cdn.skypack.dev/logrc';
</script>

README

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 !