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

rfx-logger

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rfx-logger

RfxLogger - an upgrade for your console messages

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

RfxLogger

An upgrade for your console messages

alt text

Features

  • One-line compact view
  • All messages have intuitive colors
  • Message tag supports HTTP codes (coming soon)

Installation

Install the npm package:

npm install rfx-logger

Import module:

config is optional if you want to disable debug data. Default is false

import { RfxLoggerModule } from 'rfx-logger';

@NgModule({
    imports: [
      RfxLoggerModule.config({
        disableDebug: true        // true = disabled debug data (useful for production)
      })
    ]
})

Usage

  import { RfxLoggerService } from 'rfx-logger';

  [...]

  constructor(rfxLoggerService: RfxLoggerService) { }

  [...]

  this.rfxLoggerService.success(title, data);    // success - green message
  this.rfxLoggerService.warning(title, data);    // warning - yellow message
  this.rfxLoggerService.error(title, data);      // error   - red message
  • title custom string (eg. function name)

  • data optional, any object you want to print with the debug message (eg. backend data)

Demo

TODO

License

This project is licensed under the MIT License

Keywords

FAQs

Package last updated on 28 Jul 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