@logone/adapter-node
v0.0.1
Published
This library is logger that supports structured logging by generating a single line of JSON format for your specified lifecycle. Inspired by logone-go.
Downloads
66
Readme
@logone/adapter-node
Installation
npm install @logone/core @logone/adapter-node
Usage
import { createLogone } from '@logone/core'
import { createAdapter } from '@logone/adapter-node'
const logone = createLogone(createAdapter())
const main = () => {
const { logger, finish } = logone.start('example')
logger.info('hello world')
finish()
}