logrc
v0.0.7
Published
simple json log writer.
Downloads
8
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'
});