System-logger

System-logger is a lightweight Node.js logging library that provides a basic, pluggable logging mechanism.

  • Databases
  • Monitoring & Logging
System-logger is a lightweight Node.js logging library that provides a basic, pluggable logging mechanism. It lets you inject custom storage logic to control where and how your log results are persisted, giving developers building Node.js applications a simple way to add logging without adopting a heavyweight framework.

Platform availability

Available on 0 of 10 platforms

  • Unraid (not listed)
  • TrueNAS (not listed)
  • Umbrel (not listed)
  • ZimaOS (not listed)
  • Proxmox (not listed)
  • Helm (not listed)
  • Mac (not listed)
  • Windows (not listed)
  • Linux (not listed)
  • Any server (not listed)

Health score?A 0-100 score computed nightly from four factors: maintained (40%: recent commits and steady activity), popular (25%: GitHub stars, log scale), easy to install (20%: platforms, install notes, setup guides, Docker image) and light to run (15%: minimum RAM, ARM support). When the source code has been checked, a fifth factor, security check (20%: automated scan for committed secrets, unsafe desktop-app settings, known-vulnerable dependencies and project hygiene; any serious finding caps it at 20), is added. Factors without data are left out and the rest are rescaled.

8/100 Low

Maintained
0last commit 1575 days ago
Popular
61 GitHub stars
Easy to install
250 install platforms, install notes, Docker image
Light to run
1016 GB minimum RAM
GitHub stars
1
Open issues
3
Last commit
2022-07-30
Latest release
v2.2.0
License
MIT
Activity
stale

Checked 3 days ago - source: GitHub (leocwlam/system-logger)

Resources & Compatibility

Minimum requirements: 16 GB RAM, 4 CPU core(s), 500 GB disk. ARM (e.g. Raspberry Pi) is not supported.

Checked 54 days ago - source: Docker Hub image tags and published docs

First-install notes

  • Install the package first Run npm install irika-system-logger so your project can use the logger. Without this step, your code cannot import it. source
  • Choose a log folder When you set up the logger, point logDir to a folder you can find and keep. That folder stores the log files, so a bad or temporary path can make your history disappear. source
  • Install via npm Run npm install system-logger in your project directory to add the package before requiring it in your Node.js code. source

Fetched 41 days ago - each note links to its source

Alternatives

No alternatives collected yet.

Common questions

How do I install and import system-logger in a Node.js project?

Install it with npm using the --save flag, then require the package in your code.

Which logging levels does system-logger support?

It supports error, warn, info, verbose, debug, and silly levels.

How can I write logs to a local file?

Pass a file config object with saveToFileName to the Logger constructor, for example with './track.log'.

Can I override how log entries are displayed?

Yes, set logConfig.externalDisplayFormat to a function that returns the desired timestamp, level, message, and optional details.

What can be included in the optional log data?

The options parameter can accept plain information such as strings, objects, Error instances, or arrays.

Answers sourced from github.com

Community

Collected 48 days ago - public community threads