# @saasly/logs-client-nodejs

> `npm i @saasly/logs-client-nodejs`

Latest version **1.0.29** (published 2023-10-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @saasly/logs-client-nodejs
pnpm add @saasly/logs-client-nodejs
yarn add @saasly/logs-client-nodejs
bun add @saasly/logs-client-nodejs
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.29 |
| Published | 2023-10-30 |
| First published | 2023-09-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 51.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Lukas Liesis |
| Maintainers | liesislukas |
| Keywords | logging, logs, saasly, cloud, logs, cloud, logging, cloud, console, cloud, pm2, logs, easy, logs, logs, manager, logs, managing, console, log |

## Links

- npm: https://www.npmjs.com/package/@saasly/logs-client-nodejs
- Repository: https://github.com/saasly/saasly-logs-clients
- Homepage: https://github.com/saasly/saasly-logs-clients#readme
- Issues: https://github.com/saasly/saasly-logs-clients/issues
- npm.io page: https://npm.io/package/@saasly/logs-client-nodejs

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^1.5.0
- [stack-trace](https://npm.io/package/stack-trace.md) 0.0.10

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.0.29 (latest) — 2023-10-30
- 1.0.28 — 2023-10-30
- 1.0.27 — 2023-10-30
- 1.0.26 — 2023-10-25
- 1.0.25 — 2023-10-25
- 1.0.24 — 2023-10-25
- 1.0.23 — 2023-10-25
- 1.0.22 — 2023-10-25
- 1.0.21 — 2023-10-25
- 1.0.20 — 2023-10-25
- 1.0.19 — 2023-10-25
- 1.0.18 — 2023-10-25
- 1.0.17 — 2023-10-25
- 1.0.16 — 2023-10-25
- 1.0.15 — 2023-10-25
- … 28 more at https://npm.io/package/@saasly/logs-client-nodejs/versions

## README

## Free cloud logging solution for NodeJS 🎉

`npm i @saasly/logs-client-nodejs`

### Usage is extremely simple

1. Install package & add the code to your index.ts or index.js file before any of your code
2. Get your **FREE API KEY** at https://client.saasly.io

```
import saaslyLogger from "@saasly/logs-client-nodejs";
saaslyLogger({apiKey: "YOUR_API_KEY"});
```

3. Continue using `console.log`, `console.error`, `console.warn`, `console.info`, `console.debug`

Enjoy 😍


-----


If you want to use `require`:

```javascript
const {default: saaslyLogger} = require("@saasly/logs-client-nodejs");
saaslyLogger({apiKey: "YOUR_API_KEY"});

```

### Free cloud logging helper options

| Option       | Required? | Default                                                         | Description                                                                                                                                                                                                                                                                                                                            |
|--------------|-----------|-----------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| apiKey       | Required  | undefined                                                       | Your API key, get for free at https://client.saasly.io                                                                                                                                                                                                                                                                                 |
| source       | Optional  | `process.env.PROCESS_NAME`, `process.env.NODE_ENV` or undefined | Should be some identifier showing location where app runs. Could be process.env.NODE_ENV or some process name like "api", "cron-runner"                                                                                                                                                                                                |
| identifier   | Optional  | undefined                                                       | If log message includes `#something` the "something" part will be set as identifier. You could setup your IDE to add random string, or can just type in random things while logging. Very useful when need to find exact console.log by error/log message. E.g. `console.log('#27014143832 Hello')`. Identifier would be `27014143832` |
| doTrackLog   | Optional  | true                                                            | If true, will pipe logs from console.log() to saasly                                                                                                                                                                                                                                                                                   |
| doTrackError | Optional  | true                                                            | If true, will pipe logs from console.error() to saasly                                                                                                                                                                                                                                                                                 |
| doTrackWarn  | Optional  | true                                                            | If true, will pipe logs from console.warn() to saasly                                                                                                                                                                                                                                                                                  |
| doTrackInfo  | Optional  | true                                                            | If true, will pipe logs from console.info() to saasly                                                                                                                                                                                                                                                                                  |
| doTrackDebug | Optional  | true                                                            | If true, will pipe logs from console.debug() to saasly                                                                                                                                                                                                                                                                                 |

https://client.saasly.io

### Why use saasly logs?

- **Centralized logging**: All of your logs are stored in one central location, making it easy to search and browse
  them.
- **Live logs**: You can see live logs from all of your Node.js applications in real time without having to connect to
  servers.
- **Historical logs**: You can also store and browse historical logs, making it easy to troubleshoot problems and track
  down errors.
- **Filtering and searching**: Saasly logging services allow you to filter and search your logs by level, source, and
  other criteria.
- **FREE** 😍

---
_Source: https://npm.io/package/@saasly/logs-client-nodejs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
