1.0.29 • Published 6 months ago

@saasly/logs-client-nodejs v1.0.29

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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"});
  1. Continue using console.log, console.error, console.warn, console.info, console.debug

Enjoy 😍


If you want to use require:

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

Free cloud logging helper options

OptionRequired?DefaultDescription
apiKeyRequiredundefinedYour API key, get for free at https://client.saasly.io
sourceOptionalprocess.env.PROCESS_NAME, process.env.NODE_ENV or undefinedShould be some identifier showing location where app runs. Could be process.env.NODE_ENV or some process name like "api", "cron-runner"
identifierOptionalundefinedIf 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
doTrackLogOptionaltrueIf true, will pipe logs from console.log() to saasly
doTrackErrorOptionaltrueIf true, will pipe logs from console.error() to saasly
doTrackWarnOptionaltrueIf true, will pipe logs from console.warn() to saasly
doTrackInfoOptionaltrueIf true, will pipe logs from console.info() to saasly
doTrackDebugOptionaltrueIf 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 😍
1.0.29

6 months ago

1.0.28

6 months ago

1.0.27

6 months ago

1.0.26

6 months ago

1.0.25

6 months ago

1.0.24

6 months ago

1.0.23

6 months ago

1.0.22

6 months ago

1.0.21

6 months ago

1.0.20

6 months ago

1.0.19

6 months ago

1.0.18

6 months ago

1.0.17

6 months ago

1.0.16

6 months ago

1.0.15

6 months ago

1.0.14

6 months ago

1.0.13

6 months ago

1.0.12

7 months ago

1.0.10

7 months ago

1.0.9

7 months ago

1.0.8

7 months ago

1.0.7

7 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

0.0.17

7 months ago

0.0.16

7 months ago

0.0.15

7 months ago

0.0.14

7 months ago

0.0.13

7 months ago

0.0.12

7 months ago

0.0.11

7 months ago

0.0.10

7 months ago

0.0.9

7 months ago

0.0.8

7 months ago

0.0.7

7 months ago

0.0.6

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago