Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@golem-sdk/pino-logger

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@golem-sdk/pino-logger

Pino logger based library suitable for use with @golem-sdk/golem-js

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

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)
  • Support for forcing certain log level by setting GOLEM_PINO_LOG_LEVEL="debug" - usefully when you want to control the logging done by this library without changing the application using it.

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

Keywords

FAQs

Package last updated on 17 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc