New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

rklogger

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rklogger

RKLogger is a lightweight JavaScript library designed for efficient and visually appealing logging. It offers developers the ability to produce logs, utilizing distinct colors to represent different log levels for improved readability and comprehension.

latest
Source
npmnpm
Version
1.6.1
Version published
Maintainers
1
Created
Source

RKLogger

RKLogger is a lightweight JavaScript library designed for efficient and visually appealing logging. It offers developers the ability to produce logs, utilizing distinct colors to represent different log levels for improved readability and comprehension.

License npm

Features

  • Supports different log levels: General, Info, Trace, Debug, Warning, Error, and Fatal.
  • Color-coded console output for easy readability.
  • Configurable stack trace logging.
  • Supports timestamp formatting with optional milliseconds.
  • Reads configuration from environment variables.

Install

npm i rklogger

Usage

printFatal('This is a FATAL log output', [object]);
printError('This is a ERROR log output');
printWarning('This is an WARNING log output');
printDebug('This is a DEBUG log output');
printTrace('This is a TRACE log output');
printGeneral('This is a GENERAL log output');
printInfo('This is a INFO log output');

Sample Output

img.png

.env Support

In the .env file of the project, the following parameters can be configured to customize RKLogger, or no settings can be made at all. By default, RKLogger will operate in the UTC time zone, format timestamps using en-US, and print all DEBUG messages.

# CONSOLE OPTION
PRINT_DEBUG=true
PRINT_STACK_DETAIL=true
CONSOLE_LOCALE='en-GB'
CONSOLE_TIMEZONE='Australia/Melbourne'
SUPPORT_MILLISECONDS=true

Keywords

Log

FAQs

Package last updated on 01 Apr 2025

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