# vendure-plugin-google-cloud-logger

> A Google Cloud logger for Vendure ecommerce

Latest version **0.1.0** (published 2022-02-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install vendure-plugin-google-cloud-logger
pnpm add vendure-plugin-google-cloud-logger
yarn add vendure-plugin-google-cloud-logger
bun add vendure-plugin-google-cloud-logger
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2022-02-16 |
| First published | 2022-02-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=14.0.0 |
| Dependencies | 1 |
| Unpacked size | 14.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dushko Jordanovski |
| Maintainers | skid |

## Links

- npm: https://www.npmjs.com/package/vendure-plugin-google-cloud-logger
- Repository: https://github.com/Paket-mk/vendure-plugin-google-cloud-logger
- Homepage: https://github.com/Paket-mk/vendure-plugin-google-cloud-logger#readme
- Issues: https://github.com/Paket-mk/vendure-plugin-google-cloud-logger/issues
- npm.io page: https://npm.io/package/vendure-plugin-google-cloud-logger

## Dependencies (1)

- [@google-cloud/logging](https://npm.io/package/@google-cloud/logging.md) ^9.6.9

## Recent versions

- 0.1.0 (latest) — 2022-02-16

## README

# Google Cloud logger Vendure Plugin

This plugin wraps the Google Cloud SDK `@google-cloud/logging` library and sends structured logs to the GCP logging service.

The plugin attaches the current request to each log message, and uses (Async Local Storage)[https://nodejs.org/api/async_hooks.html] under the hood - so you need at least Node 14 to run it.

This is still an experimental plugin, so no warranties and all that.

## Usage

```ts
// In your vendure-config.ts file just add this plugin:
import { GoogleCloudLoggerPlugin } from 'vendure-plugin-google-cloud-logger'

export const config: VendureConfig = {
  plugins: [
    GoogleCloudLoggerPlugin.init({
      projectId: "gcp-project-id",
      resourceType: "gcp-resource-type", // e,g, cloud_run_revision
      logName: "gcp-log-name",
    }),
    ...
  ],
  ...
}
```

---
_Source: https://npm.io/package/vendure-plugin-google-cloud-logger · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
