anatomic-bunyan
v0.2.0
Published
An anatomic component for bunyan
Downloads
1
Readme
anatomic-bunyan
An anatomic component for bunyan.
tl;dr
const anatomic = require("anatomic");
const logger = require("anatomic-bunyan");
async function main() {
const system = anatomic()
.add('logger', logger()).dependsOn("config")
.configure({ logger: { level: 'info', name: 'pizza' } });
const { logger } = await system.start()
logger.info({ toppings: ['olives', 'capers', 'anchovies'] }, "I love Pizza Napoli!");
}
main();