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

testarmada-logger

Package Overview
Dependencies
Maintainers
11
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

testarmada-logger

logger for testarmada family

  • 1.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
11
Created
Source

logger

Build Status License: MIT codecov

a simple logger to keep all logs of testarmada repos in the same format

How to use

import logger from "testarmada-logger";

logger.prefix = "SOME_PREFERRED_PREFIX";

logger.log("this", "is", "a", "thing");
// output: [INFO] [SOME_PREFERRED_PREFIX] this, is, a, thing

logger.warn("something");
// output: [WARN] [SOME_PREFERRED_PREFIX] something

logger.err("something");
// output: [ERROR] [SOME_PREFERRED_PREFIX] something

logger.loghelp("print help of your module");
// output: print help of your module

logger.debug("debug infomation");
// output [DEBUG] [SOME_PREFERRED_PREFIX] debug infomation

Enable debug

Debug mode can be enabled by

  1. Add TESTARMADA_LOGGER_DEBUG=true as env variable, or
  2. Add --debug to your command

License

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

FAQs

Package last updated on 16 Oct 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