@golem-sdk/pino-logger
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Pino based logging utility for @golem-sdk

What is @golem-sdk/pino-logger

This library is designed for use with @golem-sdk/golem-js based libraries and applications. While @golem-sdk/golem-js provides built in logging capabilities, you can use @golem-sdk/pino-logger as an extension to your workflow to

Features

This library exposes two implementations of the Logger interface from @golem-sdk/golem-js:

  • JSON output logging (pino)
  • Pretty formatted logging (pino-pretty)

Installation

@golem-sdk/pino-logger is available as a NPM package. You can install it with:

npm install @golem-sdk/pino-logger

Usage

In your @golem-sdk/golem-js based application, you can use in all the places where the Logger instance is accepted:

import { pinoPrettyLogger } from "@golem-sdk/pino-logger";

const logger = pinoPrettyLogger({
  level: "debug",
});

Building

The library is developed using TypeScript and can be built with:

npm run build

See also

/@golem-sdk/pino-logger/

    Package Sidebar

    Install

    npm i @golem-sdk/pino-logger

    Weekly Downloads

    545

    Version

    1.0.1

    License

    LGPL-3.0

    Unpacked Size

    12 kB

    Total Files

    7

    Last publish

    Collaborators

    • grisha87
    • pangrzegorz
    • prekucki