How to use the mwp-logger-plugin.logger function in mwp-logger-plugin

To help you get started, we’ve selected a few mwp-logger-plugin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github meetup / meetup-web-platform / packages / mwp-tracking-plugin / src / util / avro.js View on Github external
// @flow
const log = require('mwp-logger-plugin').logger;
const avro = require('avsc');
const uuidv1 = require('uuid/v1');
const AWS = require('aws-sdk');

const canUsePubSub =
	process.env.GAE_INSTANCE || process.env.GOOGLE_APPLICATION_CREDENTIALS;
const sts = new AWS.STS();

/*
 * There are currently 2 distinct analytics logging methods
 * 1. `stdout`: used in dev and compatible with https://github.com/meetup/blt-fluentd
 *    in k8s-based applications in GCP
 * 2. Google Pub/Sub, which is used in GAE and any environment with GOOGLE_APPLICATION_CREDENTIALS
 *    environment variable set to point toward Google JSON client credentials file
 *
 * @see https://meetup.atlassian.net/wiki/display/MUP/Analytics+Logging#AnalyticsLogging-Theinputmechanism

mwp-logger-plugin

Hapi logging plugin for MWP apps

MIT
Latest version published 1 year ago

Package Health Score

39 / 100
Full package analysis

Similar packages