# blgr

> Logger for node.js

Latest version **0.2.1** (published 2023-08-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install blgr
pnpm add blgr
yarn add blgr
bun add blgr
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2023-08-31 |
| First published | 2017-10-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 1 |
| Unpacked size | 26 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Christopher Jeffrey |
| Maintainers | chjj, nodweber, pinheadmz |
| Keywords | log, logs, logger |

## Links

- npm: https://www.npmjs.com/package/blgr
- Repository: https://github.com/bcoin-org/blgr
- Issues: https://github.com/bcoin-org/blgr/issues
- npm.io page: https://npm.io/package/blgr

## Dependencies (1)

- [bsert](https://npm.io/package/bsert.md) ~0.0.12

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

- 0.2.1 (latest) — 2023-08-31
- 0.2.0 — 2021-09-07
- 0.1.9 — 2021-09-07
- 0.1.8 — 2020-06-13
- 0.1.7 — 2019-03-21
- 0.1.6 — 2019-03-11
- 0.1.5 — 2019-01-22
- 0.1.4 — 2018-11-29
- 0.1.3 — 2018-11-28
- 0.1.2 — 2018-09-29
- 0.1.1 — 2018-07-19
- 0.1.0 — 2018-06-08
- 0.0.2 — 2018-03-12
- 0.0.1 — 2017-12-29
- 0.0.0 — 2017-10-29

## README

# blgr

Node.js logger (used for bcoin).

## Usage

``` js
const blgr = require('blgr');
const logger = blgr.logger('debug');

logger.info('Hello');
logger.warning('world');
logger.error('!');
```

## Changelog

The `shrink` property has been removed, as well as the `truncate()` function.
Instead of deleting historical information from the log file at open, logger
will now "rotate" the log file when the file size reaches `MAX_FILE_SIZE`
(default about 20 MB). At that time, the file will be rotated out and
timestamped, and a new log file will be created. When the number of archival log
files reaches `MAX_ARCHIVAL_FILES` (default 10), the oldest archival files will
be removed from disk.

## Contribution and License Agreement

If you contribute code to this project, you are implicitly allowing your code
to be distributed under the MIT license. You are also implicitly verifying that
all code is your original work. `</legalese>`

## License

- Copyright (c) 2017, Christopher Jeffrey (MIT License).

See LICENSE for more info.

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