@kiina/bigquery-logger

0.0.3 • Public • Published

BigQuery Logger

This package contains a class to save event logs to a Google BigQuery table.

Installation

npm install @kiina/bigquery-logger

Usage

const BigQueryLogger = require('@kiina/bigquery-logger');

const gcloudConfig = { /* ... */ };

const logger = new BigQueryLogger(gcloudConfig);

Methods

log(app: string, event: string, success: boolean, metadata?: string): Promise

Inserts a new event log in the table

await logger.log('myApp', 'ticket_status_update', true, '{ ticketId: 12392331 }');

Readme

Keywords

none

Package Sidebar

Install

npm i @kiina/bigquery-logger

Weekly Downloads

0

Version

0.0.3

License

ISC

Unpacked Size

3.29 kB

Total Files

6

Last publish

Collaborators

  • asalgado
  • eder_kiina
  • antunesmg
  • marcojardim