Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.33 KB

File metadata and controls

32 lines (25 loc) · 1.33 KB

@mish-tv/stackdriver-logger

npm Build and test coverage license

`@mish-tv/stackdriver-logger` a package to output logs to stackdriver logging through standard output. I assume it will be used in applications running on CloudRun.

Installation

npm install --save @mish-tv/stackdriver-logger

Usage

import { logger } from "@mish-tv/stackdriver-logger";

logger.debug("log message", payload);
logger.info("log message", payload);
logger.warning("log message", payload);
logger.error("log message", payload);

Todo

  • Make sure we know the file name and line number of the code that was logged.