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

@saasly/logs-client-nodejs

v1.0.29

Published

`npm i @saasly/logs-client-nodejs`

Downloads

86

Readme

Free cloud logging solution for NodeJS 🎉

npm i @saasly/logs-client-nodejs

Usage is extremely simple

  1. Install package & add the code to your index.ts or index.js file before any of your code
  2. Get your FREE API KEY at https://client.saasly.io
import saaslyLogger from "@saasly/logs-client-nodejs";
saaslyLogger({apiKey: "YOUR_API_KEY"});
  1. Continue using console.log, console.error, console.warn, console.info, console.debug

Enjoy 😍


If you want to use require:

const {default: saaslyLogger} = require("@saasly/logs-client-nodejs");
saaslyLogger({apiKey: "YOUR_API_KEY"});

Free cloud logging helper options

| Option | Required? | Default | Description | |--------------|-----------|-----------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | apiKey | Required | undefined | Your API key, get for free at https://client.saasly.io | | source | Optional | process.env.PROCESS_NAME, process.env.NODE_ENV or undefined | Should be some identifier showing location where app runs. Could be process.env.NODE_ENV or some process name like "api", "cron-runner" | | identifier | Optional | undefined | If log message includes #something the "something" part will be set as identifier. You could setup your IDE to add random string, or can just type in random things while logging. Very useful when need to find exact console.log by error/log message. E.g. console.log('#27014143832 Hello'). Identifier would be 27014143832 | | doTrackLog | Optional | true | If true, will pipe logs from console.log() to saasly | | doTrackError | Optional | true | If true, will pipe logs from console.error() to saasly | | doTrackWarn | Optional | true | If true, will pipe logs from console.warn() to saasly | | doTrackInfo | Optional | true | If true, will pipe logs from console.info() to saasly | | doTrackDebug | Optional | true | If true, will pipe logs from console.debug() to saasly |

https://client.saasly.io

Why use saasly logs?

  • Centralized logging: All of your logs are stored in one central location, making it easy to search and browse them.
  • Live logs: You can see live logs from all of your Node.js applications in real time without having to connect to servers.
  • Historical logs: You can also store and browse historical logs, making it easy to troubleshoot problems and track down errors.
  • Filtering and searching: Saasly logging services allow you to filter and search your logs by level, source, and other criteria.
  • FREE 😍