added unit testing, and started implementing unit tests...phew
This commit is contained in:
14
node_modules/logform/examples/combine.js
generated
vendored
Normal file
14
node_modules/logform/examples/combine.js
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
const { format } = require('../');
|
||||
const { combine, timestamp, label } = format;
|
||||
|
||||
const labelTimestamp = combine(
|
||||
label({ label: 'right meow!' }),
|
||||
timestamp()
|
||||
);
|
||||
|
||||
const info = labelTimestamp.transform({
|
||||
level: 'info',
|
||||
message: 'What time is the testing at?'
|
||||
});
|
||||
|
||||
console.dir(info);
|
Reference in New Issue
Block a user