15 lines
290 B
JavaScript
15 lines
290 B
JavaScript
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);
|