# abr-log

> ## Features - log formatting, with date, log levels, module name and colors - log saving with daily file rotate

Latest version **1.0.4** (published 2022-08-22) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2022-08-22 |
| First published | 2018-07-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alexandre Storelli |
| Maintainers | dest4 |

## Links

- npm: https://www.npmjs.com/package/abr-log
- Homepage: https://github.com/adblockradio/log
- npm.io page: https://npm.io/package/abr-log

## Dependencies (3)

- [chalk](https://npm.io/package/chalk.md) ^2.3.2
- [winston](https://npm.io/package/winston.md) ^3.8.1
- [winston-daily-rotate-file](https://npm.io/package/winston-daily-rotate-file.md) ^4.7.1

## Recent versions

- 1.0.4 (latest) — 2022-08-22
- 1.0.3 — 2019-07-11
- 1.0.2 — 2018-07-12

## README

# log helper

## Features
- log formatting, with date, log levels, module name and colors
- log saving with daily file rotate

## Installation
`npm install abr-log --save`

## Usage
```
> const { log } = require("abr-log")("my module name");
> log.info("my name is foo");
[2018-04-19T10:23:08.663Z] info my module name: 	my name is foo
```
and a new line has been added in the subfolder `log/04-19`.
`log.error` messages are also written to `log/error.log`.

## Available loglevels
- `log.info`
- `log.warn`
- `log.error`
- `log.debug`

## Licence
MIT

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