npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

rfx-logger

v6.3.2

Published

RfxLogger - upgrade your browser console messages

Readme

RfxLogger

Upgrade for browser console messages

Features

  • One-line compact view
  • Non-intrusive debug data
  • Messages have customizable colors
  • Message tag support HTTP codes
  • Message have time and http response time
  • Intercept HTTP calls and automatically prints message to the console
  • Completely disable logger
  • Customize data you want to show (http code, time, http duration, log types)

Installation

Install the npm package:

npm install rfx-logger

Import module and interceptor:

  • interceptor is optional
  • .config is optional
import { RfxLoggerModule, RfxLoggerInterceptor } from 'rfx-logger';
import { HTTP_INTERCEPTORS } from '@angular/common/http';

@NgModule({
  imports: [
    RfxLoggerModule.config({
      [ ... ]
    })
  ],
  providers: [
    {
      provide: HTTP_INTERCEPTORS,
      useClass: RfxLoggerInterceptor,
      multi: true
    }
  ],
})

Module configuration

disableLogger: boolean

(default value: false) If true, completely disable all types of messages.

disableVerbose: boolean

(default value: false) If true, logger doesn't print any debug data, just a one line message.

disableHttpCodes: boolean

(default value: false) If true, logger doesn't show http code when http interceptor is used.

disableHttpCallDuration: boolean

(default value: false) If true, http calls duration are hidden

disableTime: boolean

(default value: false) If true, disable time inside console log.

enabledLogs: (LogTypeEnum | string)[]

(default value: ['success', 'warning', 'error', 'trace']) Enable only selected types of log. All logs are enabled by default.

colorsConfig: LogStyleModel[]

Customize every message tag, text, time and http response time This is the default style:

colorsConfig: [
  {
    logType: 'success',
    tagStyle: 'color: #000000; font-weight: bold; background-color: #8BC34A; padding: 1px 5px; margin-left: 2px;',
    textStyle: 'color: #8BC34A; font-weight: bold; padding: 1px 0;',
    timeStyle: 'color: #9E9E9E; font-weight: bold; padding: 1px 0;',
    responseTimeStyle: 'color: #9E9E9E; font-weight: normal; padding: 1px 0;'
  },
  {
    logType: 'warning',
    tagStyle: 'color: #000000; font-weight: bold; background-color: #FFC107; padding: 1px 5px; margin-left: 2px;',
    textStyle: 'color: #FFC107; font-weight: bold; padding: 1px 0;',
    timeStyle: 'color: #9E9E9E; font-weight: bold; padding: 1px 0;',
    responseTimeStyle: 'color: #9E9E9E; font-weight: normal; padding: 1px 0;'
  },
  {
    logType: 'error',
    tagStyle: 'color: #FFFFFF; font-weight: bold; background-color: #F44336; padding: 1px 5px; margin-left: 2px;',
    textStyle: 'color: #F44336; font-weight: bold; padding: 1px 0;',
    timeStyle: 'color: #9E9E9E; font-weight: bold; padding: 1px 0;',
    responseTimeStyle: 'color: #9E9E9E; font-weight: normal; padding: 1px 0;'
  },
  {
    logType: 'trace',
    tagStyle: 'color: #FFFFFF; font-weight: bold; background-color: #757575; padding: 1px 5px; margin-left: 2px;',
    textStyle: 'color: #BDBDBD; font-weight: bold; padding: 1px 0;',
    timeStyle: 'color: #9E9E9E; font-weight: bold; padding: 1px 0;',
    responseTimeStyle: 'color: #9E9E9E; font-weight: normal; padding: 1px 0;'
  }
]

Usage

  • message custom string (eg. function name)
  • data optional, any object you want to print with the console message (eg. backend data)
import { RfxLoggerService } from 'rfx-logger';

[...]

constructor(rfxLoggerService: RfxLoggerService) { }

[...]

this.rfxLoggerService.success(message, data);    // success - green message
this.rfxLoggerService.warning(message, data);    // warning - yellow message
this.rfxLoggerService.error(message, data);      // error   - red message
this.rfxLoggerService.trace(message, data);      // trace   - gray message

Demo

https://demo.redfoxxo.dev/rfx-logger

License

This project is licensed under the MIT License