Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 475 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 475 Bytes

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' });