This package has been deprecated

Author message:

package was renamed to @logdash/js-sdk

@logdash/core
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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/core

Usage

import { createLogDash } from '@logdash/core';

const { logger } = createLogDash({
	apiKey: '<your-api-key>',
});

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

View

To see the logs, go to your project dashboard

logs delta

Configuration

Parameter Required Default Description
apiKey no - Api key used to authorize against logdash servers. If you don't provide one, logs will be logged into local console only

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.

Package Sidebar

Install

npm i @logdash/core

Weekly Downloads

5

Version

1.0.5

License

MIT

Unpacked Size

187 kB

Total Files

68

Last publish

Collaborators

  • ablaszkiewicz
  • sgracki