# System-logger

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

Canonical page: https://ourlocalhost.com/app/5261/system-logger

## Description

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.

## Health score

8/100 (Low), based on 4 of 4 factors.
- Maintained: 0 (last commit 1575 days ago)
- Popular: 6 (1 GitHub stars)
- Easy to install: 25 (0 install platforms, install notes, Docker image)
- Light to run: 10 (16 GB minimum RAM)

## Links

- GitHub: https://github.com/leocwlam/system-logger

## 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.

---
Source: Our Local Host (https://ourlocalhost.com/app/5261/system-logger), the self-hosted and open-source app directory.
