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

@xapp/logger

Package Overview
Dependencies
Maintainers
6
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xapp/logger

Simple & configurable logging

  • 1.18.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

@xapp/logger

Simple shared logging library built on top of Winston.

Usage

import { log } from "@xapp/stentor-logger"

log().debug("Hello");
log().debug({foo:true});
log().info("Payload %o", request);
log().warn("uh oh");
log.error(new Error("bar"));

Configuration

You can configure the loggers behavior with the following environment variables:

OVAI_LOG_LEVEL="debug"

Or "info", "warn", or "error".

OVAI_LOG_PII="true"

To log PII, by default all detected PII is redacted.

OVAI_LOG_PII_MASK_PARTIAL="true"

When set to true, it will mask a majority of the PII but leave some characters unmasked. For example: (123) 456 7890 goes to (###) ### 7890. By default, all characters are masked.

OVAI_LOG_PII_ERRORS="true"

Only used by OVAI developers to help debug errors while attempting to redact PII.

FAQs

Package last updated on 05 Feb 2020

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