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

@openfn/logger

Package Overview
Dependencies
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openfn/logger

Cross-package logging utility

  • 0.0.3
  • npm
  • Socket score

Version published
Weekly downloads
882
increased by17.44%
Maintainers
3
Weekly downloads
 
Created
Source

Levels

Log policies in the CLI and sub components

The log enables the following levels:

  • success (default) - prints high level stuff that worked
    • files loaded
    • files written to
  • info - Notification of major things that happened
    • compiler changes
  • Debug - traces when entering (and exiting?) particular functions. Prints details objects and source.

I don't really know if sucess is a level. I think that's info.

By default the CLI logs jobs at trace and everything else at success

ok, so compiler info will report high level on what each transform did. compiler trace will report on each statement it modifies.

A good rule of thumb is that trace will log supporting information for an info.

I just have this really strong sense there's something inbetween info and debug.

  • default - no detail
  • info -

ah ok, maybe it's like this:

  • default (error and major success - just what you NEED to know)
  • info - a bit of detail abotu what's happening under the hood, interesting to most users
  • debug - deep tracing, including data dumps

So info is the middle layer I'm lookign for.

success - a critical high level opeation succeeded info - interesting explanation abotu whats happening debug - detailed stack tracing

This can be calibrated per component

--log defaultLevel component=level

FAQs

Package last updated on 11 Oct 2022

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