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

log4js-tagline

v5.3.22

Published

log4js + tagline

Downloads

154

Readme

npm Package License CodeQL Node.js CI

NPM

log4js-tagline is an extension of the node logging package log4js. Tags can be created and used independently or in combination with other tags; the output can be directed to both a local file, console, datadog, combinations of both on the fly or none. Each tag itteration is incremented.


Included object processing:

  • queueObj - Support for dynamic objects with all the tagline appenders
  • queueJson - depreciated. All appenders have been moved into queueObj. See the example tests.

Included tag appenders:

  • route - to display path or service name
  • line - displays file name and line number
  • action - displays action name
  • stopwatch - displays time elapsed for a particular tag.
  • counter - displays counts applied to a tag.
  • error - displays an error message from the try/catch block along with the class/function if available from the stack, or simply display an error message.
  • class_function - display the class and function name.
  • display - ability to turn tags on or off
  • counter - count how many itterations a tag has been inputted to. Helpfull in turning tags on/off.
  • datadog - for metrics including increment, incrementBy, gauge, histogram, and set.
  • email - Appenders and cron settings allows flexible email delivery options

Installation

npm install log4js-tagline

Mocha Test

npm test

General Setup Tests.

All tests starting with the letter test_q... are examples of queueObj. The letters beginning with test_qj... indicate queueObj Json samples.

npm run test_basic
npm run test_qAll    
npm run test_qTopOne
npm run test_qBottomOne
npm run test_qFuncAll
npm run test_qStatusMatching
npm run test_qNonStatusMatching
npm run test_qVersionMatching
npm run test_qVersionNonMatching
npm run test_qNameMatching
npm run test_qNameNonMatching
npm run test_qjAll
npm run test_qjTopOne
npm run test_qjBottomOne
npm run test_qjFuncAll
npm run test_qjStatusMatching
npm run test_qjStatusNonMatching
npm run test_qjNameMatching
npm run test_qjNameNonMatching
npm run test_qjVersionMatching
npm run test_qjVersionNonMatching