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

@logdash/js-sdk

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@logdash/js-sdk

Modern observability platform.

latest
Source
npmnpm
Version
1.0.9
Version published
Maintainers
2
Created
Source

logdash - JS SDK

Logdash is a zero-config observability platform. This package serves an javascript interface to use it.

Pre-requisites

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

Installation

npm install @logdash/js-sdk

Logging

import { createLogDash } from '@logdash/js-sdk';

const { logger } = createLogDash({
	// optional, but recommended to see your logs in the dashboard
	apiKey: '<your-api-key>',
});

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

Metrics

import { createLogDash } from '@logdash/js-sdk';

const { metrics } = createLogDash({
	// optional, but recommended as metrics are only hosted remotely
	apiKey: '<your-api-key>',
});

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

// to modify existing metric
metrics.mutate('users', 1);

View

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

logs delta

Configuration

ParameterRequiredDefaultDescription
apiKeyno-Api key used to authorize against logdash servers. If you don't provide one, logs will be logged into local console only
hostno-Custom API host, useful with self-hosted instances
verboseno-Useful for debugging purposes

License

This project is licensed under the MIT License.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

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 13 May 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