{"id":30203229,"url":"https://github.com/coralogix/nodejs-coralogix-sdk","last_synced_at":"2025-10-06T19:41:08.254Z","repository":{"id":34978583,"uuid":"140079173","full_name":"coralogix/nodejs-coralogix-sdk","owner":"coralogix","description":"Coralogix NodeJS SDK","archived":false,"fork":false,"pushed_at":"2024-07-23T13:15:22.000Z","size":537,"stargazers_count":6,"open_issues_count":12,"forks_count":11,"subscribers_count":44,"default_branch":"master","last_synced_at":"2025-08-04T07:36:33.041Z","etag":null,"topics":["coralogix","javascript","logger","logging","nodejs","sdk"],"latest_commit_sha":null,"homepage":"https://coralogix.com/integrations/coralogix-nodejs-integration/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coralogix.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-07T11:38:44.000Z","updated_at":"2024-07-23T13:15:24.000Z","dependencies_parsed_at":"2024-10-04T12:50:21.281Z","dependency_job_id":"ae71a681-f44d-445b-a38e-92e6994a4080","html_url":"https://github.com/coralogix/nodejs-coralogix-sdk","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/coralogix/nodejs-coralogix-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coralogix%2Fnodejs-coralogix-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coralogix%2Fnodejs-coralogix-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coralogix%2Fnodejs-coralogix-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coralogix%2Fnodejs-coralogix-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coralogix","download_url":"https://codeload.github.com/coralogix/nodejs-coralogix-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coralogix%2Fnodejs-coralogix-sdk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269664799,"owners_count":24456093,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coralogix","javascript","logger","logging","nodejs","sdk"],"created_at":"2025-08-13T12:00:08.569Z","updated_at":"2025-10-06T19:41:08.153Z","avatar_url":"https://github.com/coralogix.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coralogix Node.js SDK\n\n[![npm](https://img.shields.io/npm/v/coralogix-logger.svg)](https://www.npmjs.com/package/coralogix-logger)\n[![license](https://img.shields.io/github/license/coralogix/nodejs-coralogix-sdk.svg)](https://raw.githubusercontent.com/coralogix/nodejs-coralogix-sdk/master/LICENSE)\n[![node](https://img.shields.io/node/v/coralogix-logger.svg)](https://www.npmjs.com/package/coralogix-logger)\n[![npm](https://img.shields.io/npm/dt/coralogix-logger.svg)](https://www.npmjs.com/package/coralogix-logger)\n[![Build Status](https://travis-ci.org/coralogix/nodejs-coralogix-sdk.svg?branch=master)](https://travis-ci.org/coralogix/nodejs-coralogix-sdk)\n[![codecov](https://codecov.io/gh/coralogix/nodejs-coralogix-sdk/branch/master/graph/badge.svg)](https://codecov.io/gh/coralogix/nodejs-coralogix-sdk)\n[![Maintainability](https://api.codeclimate.com/v1/badges/474f12c23edee33936b9/maintainability)](https://codeclimate.com/github/coralogix/python-coralogix-sdk/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/474f12c23edee33936b9/test_coverage)](https://codeclimate.com/github/coralogix/python-coralogix-sdk/test_coverage)\n[![GitHub issues](https://img.shields.io/github/issues/coralogix/nodejs-coralogix-sdk.svg)](https://github.com/coralogix/nodejs-coralogix-sdk/issues)\n[![GitHub pull requests](https://img.shields.io/github/issues-pr/coralogix/nodejs-coralogix-sdk.svg)](https://github.com/coralogix/nodejs-coralogix-sdk/pulls)\n[![GitHub contributors](https://img.shields.io/github/contributors/coralogix/nodejs-coralogix-sdk.svg)](https://github.com/coralogix/nodejs-coralogix-sdk/graphs/contributors)\n\n-----\nUse *coralogix-logger* to easily send your logs to [Coralogix's](http://www.coralogix.com) log analytics platform.\n\n## Table of Content\n\n* [Prerequisites](#prerequisites)\n* [Installation](#installation)\n* [Usage](#installation)\n    * [JavaScript](#javascript)\n    * [TypeScript](#typescript)\n\n## Prerequisites\n\nBefore beginning you must have installed:\n\n* Node.js\n* npm\n\n## Installation\n\n```sh\nnpm install --save coralogix-logger\n```\n\n## Usage\n\n### JavaScript\n\n```js\nvar Coralogix = require(\"coralogix-logger\");\n\n// global confing for application name, private key, subsystem name\nconst config = new Coralogix.LoggerConfig({\n    applicationName: \"node tester\",\n    privateKey: \"YOUR_PRIVATE_KEY\",\n    subsystemName: \"node tester sub\",\n});\n\nCoralogix.CoralogixLogger.configure(config);\n\n// create a new logger with category\nconst logger = new Coralogix.CoralogixLogger(\"My Category\");\n\n// create a log\nconst log = new Coralogix.Log({\n    severity: Coralogix.Severity.info,\n    className: \"className\",\n    methodName: \"methodName\",\n    text: \"log data\",\n})\n// send log to coralogix\nlogger.addLog(log);\n```\n\n### TypeScript\n\nFor using *TypeScript* sources you should clone this repository, because\nit's not included in *npm* distribution.\n\n```typescript\nimport {Log, Severity, CoralogixLogger, LoggerConfig} from \"coralogix-logger\";\n\n// global confing for application name, private key, subsystem name\nconst config = new LoggerConfig({\n    applicationName: \"node tester\",\n    privateKey: \"YOUR_PRIVATE_KEY\",\n    subsystemName: \"node tester sub\",\n});\n\nCoralogixLogger.configure(config);\n\n// create a new logger with category\nlogger: CoralogixLogger = new CoralogixLogger(\"My Category\")\n\n// create a log\nconst log = new Log({\n    severity: Severity.info,\n    className: \"className\",\n    methodName: \"methodName\",\n    text: \"log data\",\n})\n// send log to coralogix\nlogger.addLog(log);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoralogix%2Fnodejs-coralogix-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoralogix%2Fnodejs-coralogix-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoralogix%2Fnodejs-coralogix-sdk/lists"}