# coralogix-logger

> Node.js SDK to send your logs to Coralogix

Latest version **1.2.2** (published 2025-12-09) · Apache-2.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install coralogix-logger
pnpm add coralogix-logger
yarn add coralogix-logger
bun add coralogix-logger
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.2.2 |
| Published | 2025-12-09 |
| First published | 2017-01-03 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 5 |
| Unpacked size | 84.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Coralogix |
| Maintainers | yonifarin, zoharaharon, amnons77, coralogix-cs, coralogixnpm |
| Keywords | coralogix, logs, sdk, javascript, typescript, library |

## Links

- npm: https://www.npmjs.com/package/coralogix-logger
- Repository: https://github.com/coralogix/nodejs-coralogix-sdk
- Homepage: https://coralogix.com/
- Issues: https://github.com/coralogix/nodejs-coralogix-sdk/issues
- npm.io page: https://npm.io/package/coralogix-logger

## Dependencies (5)

- [rxjs](https://npm.io/package/rxjs.md) ^7.8.1
- [axios](https://npm.io/package/axios.md) ^1.6.3
- [object-sizeof](https://npm.io/package/object-sizeof.md) 1.1.1
- [proxy-from-env](https://npm.io/package/proxy-from-env.md) ^1.1.0
- [json-stringify-safe](https://npm.io/package/json-stringify-safe.md) 5.0.1

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.2.2 (latest) — 2025-12-09
- 1.1.30-beta.0 (beta) — 2024-01-14
- 1.2.1 — 2025-10-23
- 1.1.34 — 2025-10-15
- 1.1.30 — 2024-01-15
- 1.1.29 — 2024-01-03
- 1.1.28 — 2021-02-01
- 1.1.27 — 2020-12-17
- 1.1.26 — 2020-11-20
- 1.1.25 — 2020-05-07
- 1.1.24 — 2020-01-01
- 1.1.23 — 2019-08-21
- 1.1.22 — 2019-06-25
- 1.1.21 — 2019-06-03
- 1.1.18 — 2017-12-20
- … 28 more at https://npm.io/package/coralogix-logger/versions

## README

# Coralogix Node.js SDK

[![npm](https://img.shields.io/npm/v/coralogix-logger.svg)](https://www.npmjs.com/package/coralogix-logger)
[![license](https://img.shields.io/github/license/coralogix/nodejs-coralogix-sdk.svg)](https://raw.githubusercontent.com/coralogix/nodejs-coralogix-sdk/master/LICENSE)
[![node](https://img.shields.io/node/v/coralogix-logger.svg)](https://www.npmjs.com/package/coralogix-logger)
[![npm](https://img.shields.io/npm/dt/coralogix-logger.svg)](https://www.npmjs.com/package/coralogix-logger)
[![codecov](https://codecov.io/gh/coralogix/nodejs-coralogix-sdk/branch/master/graph/badge.svg)](https://codecov.io/gh/coralogix/nodejs-coralogix-sdk)
[![Maintainability](https://api.codeclimate.com/v1/badges/474f12c23edee33936b9/maintainability)](https://codeclimate.com/github/coralogix/python-coralogix-sdk/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/474f12c23edee33936b9/test_coverage)](https://codeclimate.com/github/coralogix/python-coralogix-sdk/test_coverage)
[![GitHub issues](https://img.shields.io/github/issues/coralogix/nodejs-coralogix-sdk.svg)](https://github.com/coralogix/nodejs-coralogix-sdk/issues)
[![GitHub pull requests](https://img.shields.io/github/issues-pr/coralogix/nodejs-coralogix-sdk.svg)](https://github.com/coralogix/nodejs-coralogix-sdk/pulls)
[![GitHub contributors](https://img.shields.io/github/contributors/coralogix/nodejs-coralogix-sdk.svg)](https://github.com/coralogix/nodejs-coralogix-sdk/graphs/contributors)

-----
Use *coralogix-logger* to easily send your logs to [Coralogix's](http://www.coralogix.com) log analytics platform.

## Table of Content

* [Prerequisites](#prerequisites)
* [Installation](#installation)
* [Usage](#installation)
    * [JavaScript](#javascript)
    * [TypeScript](#typescript)

## Prerequisites

Before beginning you must have installed:

* Node.js
* npm

## Installation

```sh
npm install --save coralogix-logger
```

## Usage

### JavaScript

```js
var Coralogix = require("coralogix-logger");

// global confing for application name, private key, subsystem name
const config = new Coralogix.LoggerConfig({
    applicationName: "node tester",
    privateKey: "YOUR_PRIVATE_KEY",
    subsystemName: "node tester sub",
});

Coralogix.CoralogixLogger.configure(config);

// create a new logger with category
const logger = new Coralogix.CoralogixLogger("My Category");

// create a log
const log = new Coralogix.Log({
    severity: Coralogix.Severity.info,
    className: "className",
    methodName: "methodName",
    text: "log data",
})
// send log to coralogix
logger.addLog(log);
```

### TypeScript

For using *TypeScript* sources you should clone this repository, because
it's not included in *npm* distribution.

```typescript
import {Log, Severity, CoralogixLogger, LoggerConfig} from "coralogix-logger";

// global confing for application name, private key, subsystem name
const config = new LoggerConfig({
    applicationName: "node tester",
    privateKey: "YOUR_PRIVATE_KEY",
    subsystemName: "node tester sub",
});

CoralogixLogger.configure(config);

// create a new logger with category
logger: CoralogixLogger = new CoralogixLogger("My Category")

// create a log
const log = new Log({
    severity: Severity.info,
    className: "className",
    methodName: "methodName",
    text: "log data",
})
// send log to coralogix
logger.addLog(log);
```

---
_Source: https://npm.io/package/coralogix-logger · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
