0.1.0 • Published 9 months ago

pino-yc-transport v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

pino-yc-transport

A Pino v7+ transport to send message to Yandex Cloud Logging from serveless functions or containers.

Installation

npm install pino-yc-transport

Usage

const pino = require("pino");

const config = {
  level: "debug",
  transport: {
    target: "pino-yc-transport",
  },
};

const logger = pino(config);

logger.debug("some message")
logger.debug({ foo: "bar" });
logger.debug("some message %o, %s", { foo: "bar" }, "baz");
logger.info("info");
logger.warn("warn");
logger.error("error");
logger.error(new Error("error"));
logger.fatal("fatal");
0.1.0

9 months ago

0.0.1

10 months ago

0.0.0

11 months ago