pino-gcp-logger
v0.0.16
Published
Pino logger with seamless GCP integration.
Downloads
78
Readme
Pino logger for GCP
Official documentation can be found here.
Usage
npm install pino-gcp-logger
import { createLogger, logLevel } from 'pino-gcp-logger';
const defaultLevel: logLevel = 'info';
const isGCP = true;
const logger = createLogger(defaultLevel, isGCP);
logger.info('Hello world', { extra: 'data' });