Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

logikit

lazyfenix20MIT1.0.3

A customizable logging library for enhanced console output.

logikit, lazyfenix, logging, console, custom-styles, typescript, better, consolelog, console.log, colors, terminal-log, terminal-logger, term-log, term-logger, discord-logger, discord-log, log messages, log events, log errors, log formatting, improve console logs, enhance console logs, prettify logs, colorful logs, customizable logs, developer tools, debugging, node.js, npm package, javascript library, open source, community-driven, CLI logging, logging tool, console output, console beautification, improved logging, developer productivity, error tracking, debugging tool, developer tool, log levels, color coding, logging library, text formatting, debugging aid, log analysis, log enhancement, log utility, console management, console utility, developer workflow, application monitoring, error diagnostics, log readability, log filtering, log searching, log timestamps, log history, log management, log file, log rotation, log backup, log archiving, log retention, log security, log analysis tool, log analyzer, log parser, log viewer, logging framework, log dashboard, log monitoring, log metrics, log reporting, log aggregation, log forwarding, log streaming, log visualization, console debugging, console log analysis, console error tracking, console error analysis, node.js logging, npm logging, npm debugging, npm console, open source logging, community-driven logging, real-time logging, structured logging, asynchronous logging, logging performance, console styles, log context, custom log formats, log framework, log output, console trace, log file management, log viewer tool, console configuration, logging metrics, log metadata, error logging, log infrastructure, performance logging, console aesthetics, visual logging, logger utility, contextual logging, log customization, environment logging, logging best practices, log event tracking, console profiling, user-friendly logs, console output management, log insights, advanced logging, flexible logging, log output formatting, console log optimization

readme

LogiKit-Banner

A customizable logging library for enhanced console output.

version downloads

Getting Started

Installation

Using NPM:

npm install logikit

Using YARN:

yarn add logikit

Usage

Logger options

<summary>View all of the available options.</summary>
  • INFO

  • DEBUG

  • WARN

  • ERROR

  • READY

  • DATABASE

  • HEARTBEAT

  • SHARD

  • CLUSTER

  • COMMAND

  • EVENT

  • NOTICE

  • CRITICAL

  • TRACE

Text Colors options

<summary>View all of the available methods.</summary>
  • Reset

  • Black

  • Red

  • Green

  • White

  • Cyan

  • Magenta

  • Blue

  • Yellow

Background Colors options

<summary>View all of the available methods.</summary>
  • BgBlack

  • BgGreen

  • BgRed

  • BgYellow

  • BgBlue

  • BgMagenta

  • BgCyan

  • BgWhite

Text Style options

<summary>View all of the available methods.</summary>
  • Bright

  • Dim

  • Underscore

  • Blink

  • Reverse

  • Hidden

  • Reset


Import and usage example

const { Logger, Colors, Styles } = require("logikit");

function runApp() {
  Logger.info("Application started");                
  Logger.debug("Debugging application flow");         
  Logger.warn("Warning! Potential issue detected");      

  try {
    // Simulating an error
    throw new Error("Something went wrong!");
  } catch (error) {
    Logger.error("An error occurred", error);            
  }

  Logger.ready("Application is ready to accept requests"); 
  Logger.database("Database connection established");      
  Logger.heartbeat("Heartbeat signal sent");               
  Logger.shard("Shard initialized");                       
  Logger.cluster("Cluster started successfully");          
  Logger.command("Command executed");                      
  Logger.event("Event triggered");                         
  Logger.notice("Notice: This is a general notice");      
  Logger.critical("Critical error: System is shutting down"); 
  Logger.trace("Tracing application execution flow");    

  Logger.log('INFO', 'This is a custom log with specific styling!', Colors.Green, Styles.Bright);
  Logger.log('DEBUG', 'This log has a blue background!', Colors.White, Styles.BgBlue);
}

runApp();

Output example

[9:21:16] => INFO - Application started
[9:21:16] => DEBUG - Debugging application flow
[9:21:16] => WARN - Warning! Potential issue detected
[9:21:16] => ERROR - An error occurred: Something went wrong!
Stack Trace: ... (the stack trace of the error)
[9:21:16] => READY - Application is ready to accept requests
[9:21:16] => DATABASE - Database connection established
[9:21:16] => HEARTBEAT - Heartbeat signal sent
[9:21:16] => SHARD - Shard initialized
[9:21:16] => CLUSTER - Cluster started successfully
[9:21:16] => COMMAND - Command executed
[9:21:16] => EVENT - Event triggered
[9:21:16] => NOTICE - Notice: This is a general notice
[9:21:16] => CRITICAL - Critical error: System is shutting down
[9:21:16] => TRACE - Tracing application execution flow
[9:21:16] => INFO - This is a custom log with specific styling!
[9:21:16] => DEBUG - This log has a blue background!

Do you have any issues?

If you have any issues don't hesitate to report it via GitHub Issues.

This package was made by @lazyfenix.