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