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

seal-log

v1.2.0

Published

Logger for all Node.js modules by SEAL Systems

Downloads

92

Readme

seal-log

CircleCI Appveyor

seal-log is the logger for all Node.js modules by SEAL Systems.

All log messages will be written to stdout and can then be processed by 3rd-party tools.

Installation

$ npm install seal-log

Quick start

First you need to integrate seal-log into your application.

const log = require('seal-log').getLogger();

Logging

The following log levels are defined:

  • debug:

    log.debug('This is a debug message.');
  • info:

    log.info('This is a info message.');
  • warn:

    log.warn('This is a warning message.');
  • error:

    log.error('This is a error message.');
  • fatal:

    log.fatal('This is a fatal error message.');

    Please note: This level will be used for logging an unhandled exception.

Uncaught exceptions

Exceptions that are not caught otherwise are also logged with log level fatal. After logging the exception, the process will be terminated with exit code 1. You have to require the log module at least one time in your project to enable this feature. No further configuration is required.

Environment Variables

LOG_LEVELS

A list of log levels to print out. Possible levels are:

  • debug
  • info
  • warn
  • error
  • fatal

You have to provide a comma seperated list of the log levels you are interessted in:

LOG_LEVELS=info,warn,error,fatal

The list given above is the default setting, if no environment variable is set.

You can enable all logging levels with the shortcut

LOG_LEVELS=*

LOG_LEVEL

A single minimum log level which includes all higher levels.

LOG_LEVEL=warn

The setting above includes log levels warn, error and fatal.

The environment variable LOG_LEVEL has precedence over LOG_LEVELS.

Running the build

To build this module use roboter.

$ bot