# fruster-log

> Logger for Fruster (micro) services

Latest version **0.1.2** (published 2021-05-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install fruster-log
pnpm add fruster-log
yarn add fruster-log
bun add fruster-log
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2021-05-09 |
| First published | 2016-09-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 13.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | joel@frostdigital.se |
| Maintainers | joelso, jenkins-frost |
| Keywords | fruster |

## Links

- npm: https://www.npmjs.com/package/fruster-log
- Repository: https://github.com/FrostDigital/fruster-log-js
- Homepage: https://github.com/FrostDigital/fruster-log-js#readme
- Issues: https://github.com/FrostDigital/fruster-log-js/issues
- npm.io page: https://npm.io/package/fruster-log

## Dependencies (5)

- [uuid](https://npm.io/package/uuid.md) ^3.1.0
- [moment](https://npm.io/package/moment.md) ^2.29.1
- [winston](https://npm.io/package/winston.md) ^2.2.0
- [moment-timezone](https://npm.io/package/moment-timezone.md) ^0.5.33
- [winston-papertrail](https://npm.io/package/winston-papertrail.md) ^1.0.5

## Recent versions

- 0.1.2 (latest) — 2021-05-09
- 0.1.1 — 2021-03-01
- 0.1.0 — 2020-12-14
- 0.0.18 — 2018-01-23
- 0.0.17 — 2018-01-23
- 0.0.16 — 2017-12-19
- 0.0.15 — 2017-11-20
- 0.0.14 — 2017-11-17
- 0.0.13 — 2017-11-16
- 0.0.12 — 2017-11-16
- 0.0.11 — 2017-06-29
- 0.0.10 — 2017-06-01
- 0.0.9 — 2017-01-03
- 0.0.8 — 2016-12-07
- 0.0.7 — 2016-10-16
- … 6 more at https://npm.io/package/fruster-log/versions

## README

# Fruster log

A ready configured Winston logger that reads log level from environment.

The logger can also be configured to log to a Papetrail (and possibly other) remote syslog destination.

## Usage

To install:

    npm install fruster-log --save

To use in app:

    const log = require('fruster-log');

    log.debug('Hello', 'world');

## Configuration

    # Applications log level (error|warn|info|debug|silly)
    LOG_LEVEL = "debug"

    # Syslog host and port, if any
    # Example: `localhost:5499`
    SYSLOG = null
    
    # Name of syslog
    SYSLOG_NAME = "fruster noname"
    
    # Syslog program name
    SYSLOG_PROGRAM = "default"

    # Log level that will log remotely
    REMOTE_LOG_LEVEL = "error"

---
_Source: https://npm.io/package/fruster-log · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
