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 🙏

© 2024 – Pkg Stats / Ryan Hefner

logikit

v1.0.3

Published

A customizable logging library for enhanced console output.

Downloads

237

Maintainers

lazyfenixlazyfenix

Keywords

logikitlazyfenixloggingconsolecustom-stylestypescriptbetterconsolelogconsole.logcolorsterminal-logterminal-loggerterm-logterm-loggerdiscord-loggerdiscord-loglog messageslog eventslog errorslog formattingimprove console logsenhance console logsprettify logscolorful logscustomizable logsdeveloper toolsdebuggingnode.jsnpm packagejavascript libraryopen sourcecommunity-drivenCLI logginglogging toolconsole outputconsole beautificationimproved loggingdeveloper productivityerror trackingdebugging tooldeveloper toollog levelscolor codinglogging librarytext formattingdebugging aidlog analysislog enhancementlog utilityconsole managementconsole utilitydeveloper workflowapplication monitoringerror diagnosticslog readabilitylog filteringlog searchinglog timestampslog historylog managementlog filelog rotationlog backuplog archivinglog retentionlog securitylog analysis toollog analyzerlog parserlog viewerlogging frameworklog dashboardlog monitoringlog metricslog reportinglog aggregationlog forwardinglog streaminglog visualizationconsole debuggingconsole log analysisconsole error trackingconsole error analysisnode.js loggingnpm loggingnpm debuggingnpm consoleopen source loggingcommunity-driven loggingreal-time loggingstructured loggingasynchronous logginglogging performanceconsole styleslog contextcustom log formatslog frameworklog outputconsole tracelog file managementlog viewer toolconsole configurationlogging metricslog metadataerror logginglog infrastructureperformance loggingconsole aestheticsvisual logginglogger utilitycontextual logginglog customizationenvironment logginglogging best practiceslog event trackingconsole profilinguser-friendly logsconsole output managementlog insightsadvanced loggingflexible logginglog output formattingconsole log optimization

Readme

npm install logikit
yarn add logikit
  • INFO

  • DEBUG

  • WARN

  • ERROR

  • READY

  • DATABASE

  • HEARTBEAT

  • SHARD

  • CLUSTER

  • COMMAND

  • EVENT

  • NOTICE

  • CRITICAL

  • TRACE

  • Reset

  • Black

  • Red

  • Green

  • White

  • Cyan

  • Magenta

  • Blue

  • Yellow

  • BgBlack

  • BgGreen

  • BgRed

  • BgYellow

  • BgBlue

  • BgMagenta

  • BgCyan

  • BgWhite

  • Bright

  • Dim

  • Underscore

  • Blink

  • Reverse

  • Hidden

  • Reset

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();
[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!

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

This package was made by @lazyfenix.