# @matejbransky/logger

> Proxy based logger which can change log level during runtime. It was inspired by the package [`loglevel`](https://github.com/pimterry/loglevel).

Latest version **1.0.0-alpha.8** (published 2021-01-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install @matejbransky/logger
pnpm add @matejbransky/logger
yarn add @matejbransky/logger
bun add @matejbransky/logger
```

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0-alpha.8 |
| Published | 2021-01-29 |
| First published | 2020-12-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 45.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Matej Bransky |
| Maintainers | matejbransky |

## Links

- npm: https://www.npmjs.com/package/@matejbransky/logger
- npm.io page: https://npm.io/package/@matejbransky/logger

## Recent versions

- 1.0.0-alpha.8 (latest) — 2021-01-29
- 1.0.0-alpha.7 — 2021-01-02
- 1.0.0-alpha.6 — 2021-01-02
- 1.0.0-alpha.5 — 2021-01-02
- 1.0.0-alpha.4 — 2021-01-02
- 1.0.0-alpha.3 — 2020-12-25
- 1.0.0-alpha.2 — 2020-12-23
- 1.0.0-alpha.1 — 2020-12-23

## README

# @matejbransky/logger

Proxy based logger which can change log level during runtime. It was inspired by the package [`loglevel`](https://github.com/pimterry/loglevel).

## Usage

```
npm install @matejbransky/logger
```

```js
import { loggerFactory } from '@matejbransky/logger';

const log = loggerFactory.getLogger('foobar');

log.info('Hello World!'); // => prints [foobar][info]: Hello World!
```

## API

Similar to [loglevel docs](https://github.com/pimterry/loglevel#documentation).
Differences are covered in [tests](./src/loggerFactory.test.ts).

## Missing features

- log levels are not stored in local storage

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