@logone/adapter-google-cloud-logging
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
317
Readme
@logone/adapter-google-cloud-logging
Installation
npm install @logone/core @logone/adapter-google-cloud-logging
Usage
import { createLogone } from '@logone/core'
import { createAdapter } from '@logone/adapter-google-cloud-logging'
const logone = createLogone(createAdapter())
const main = () => {
const { logger, finish } = logone.start('example')
logger.info('hello world')
finish()
}