Socket
Book a DemoInstallSign in
Socket

testarmada-midway-logger

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

testarmada-midway-logger

Logging module for Midway products

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
227
20.11%
Maintainers
1
Weekly downloads
 
Created
Source

midway-logger

Logger for midway products

Usage:

It is possible to set the log level thru several options.

Option 1:

By simply setting the MIDWAY_LOG_LEVEL env variable to one of debug, info, warn, error or off.

MIDWAY_LOG_LEVEL=debug node [your-node-project]
Option 2:

By setting it directly via functions.

// Set log level
Logger.setLogLevel('debug');

// Get log level
Logger.getLogLevel();

// Reset log level
Logger.resetLogLevel();

Documentation in this project is licensed under Creative Commons Attribution 4.0 International License.Full details available at https://creativecommons.org/licenses/by/4.0/

Keywords

mocking

FAQs

Package last updated on 28 Aug 2018

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.