Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@balena/jellyfish-logger

Package Overview
Dependencies
Maintainers
3
Versions
1937
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@balena/jellyfish-logger

Logger library for Jellyfish

latest
Source
npmnpm
Version
6.0.10
Version published
Weekly downloads
2.3K
1043.07%
Maintainers
3
Weekly downloads
 
Created
Source

Jellyfish Logger

The Jellyfish backend strongly discourages the use of console.log(). This module provides a set of functions that the backend uses for logging purposes.

Goals

  • The logger takes a request ID parameter to easily filter down logs that correspond to a single system request
  • The logger is able to log uncaught exceptions
  • The logger is able to send logs using different priority levels
  • The logger is able to preserve rich object logs
  • The logger is able to pipe logs to a central location when running in production

Usage

Below is an example how to use this library:

const logger = require('@balena/jellyfish-logger')

logger.warn(context, 'Inserting card', {
    slug: card.slug,
    type: card.type
})

FAQs

Package last updated on 27 Aug 2023

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