New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@logdash/node

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@logdash/node

How solo founders keep their SaaS apps healthy.

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
2
Created
Source

@logdash/node

Logdash is how SaaS founders keep their apps healthy. This package serves a NodeJS/Bun/Deno interface to use it.

Pre-requisites

Setup your free project in less than 2 minutes at logdash.io

Installation

npm install @logdash/node

Logging

import { Logdash } from '@logdash/node';

const logdash = new Logdash('<your-api-key>');

logdash.info('Application started successfully');
logdash.error('An unexpected error occurred');
logdash.warn('Low disk space warning');

Namespaced Logging

const authLogdash = logdash.withNamespace('auth');
authLogdash.info('User logged in');
authLogdash.error('Authentication failed');

Metrics

import { Logdash } from '@logdash/node';

const logdash = new Logdash('<your-api-key>');

// to set absolute value
logdash.setMetric('users', 0);

// to modify existing metric
logdash.mutateMetric('users', 1);

Graceful Shutdown

// Ensure all logs and metrics are sent before exiting
await logdash.flush();

View

To see the logs or metrics, go to your project dashboard

dashboard

Configuration

new Logdash(apiKey?, options?)
ParameterRequiredDefaultDescription
apiKeyno-Api key used to authorize against logdash servers. If you don't provide one, logs will be logged into local console only
options.hostnohttps://api.logdash.ioCustom API host, useful with self-hosted instances
options.verbosenofalseUseful for debugging purposes

License

This project is licensed under the MIT License.

Support

If you encounter any issues, please open an issue on GitHub or let us know at contact@logdash.io.

Keywords

observability

FAQs

Package last updated on 27 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts