open-index/open-npm huggingface dataset:
npm package: @logone/adapter-google-cloud-logging
Description: This library is logger that supports structured logging by generating a single line of JSON format for your specified lifecycle. Inspired by logone-go.
Author: mizuki_r
Latest version: 1.2.0

# @logone/adapter-google-cloud-logging

## Installation

```sh
npm install @logone/core @logone/adapter-google-cloud-logging
```

## Usage

```typescript
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()
}
```
npm package: @logone/adapter-node
Description: This library is logger that supports structured logging by generating a single line of JSON format for your specified lifecycle. Inspired by logone-go.
Author: mizuki_r
Latest version: 1.2.0

# @logone/adapter-node

## Installation

```sh
npm install @logone/core @logone/adapter-node
```

## Usage

```typescript
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()
}
```
npm package: @logone/express
Description: This library is logger that supports structured logging by generating a single line of JSON format for your specified lifecycle. Inspired by logone-go.
Author: mizuki_r
Latest version: 1.1.2

# @logone/express

Middleware that using logone on express.

## Installation

```sh
npm install @logone/express
```

## Usage

```typescript
import logone from '@logone/express'

app.use(logone())

app.use((req, res, next) => {
  req.logger.info('prepare')
  next()
})

app.use((error, req, res, next) => {
  req.logger.error(error)
  res.send(500)
})

app.get('/example', (req, res) => {
  req.logger.info('hello')
  res.send(200)
})
```