chat-server/node_modules/logform/examples/combine.js

15 lines
290 B
JavaScript
Raw Permalink Normal View History

2019-04-10 13:07:31 +10:00
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);