# @kksiuda/log

> Logging for node.js

Latest version **0.3.5** (published 2023-11-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @kksiuda/log
pnpm add @kksiuda/log
yarn add @kksiuda/log
bun add @kksiuda/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.3.5 |
| Published | 2023-11-22 |
| First published | 2023-05-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 75.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Krzysztof Siuda |
| Maintainers | kksiuda |

## Links

- npm: https://www.npmjs.com/package/@kksiuda/log
- Repository: https://github.com/p00dle/log
- Homepage: https://github.com/p00dle/log#readme
- Issues: https://github.com/p00dle/log/issues
- npm.io page: https://npm.io/package/@kksiuda/log

## Recent versions

- 0.3.5 (latest) — 2023-11-22
- 0.3.4 — 2023-11-17
- 0.3.3 — 2023-11-17
- 0.3.2 — 2023-11-16
- 0.3.1 — 2023-10-27
- 0.3.0 — 2023-06-07
- 0.2.4 — 2023-05-30

## README

### Overview

No dependency logging utility wrapper with customisable consumer

### Installation

```shell
yarn install @kksiuda/log
```

or

```shell
npm install @kksiuda/log
```

### API

#### Log

Creates a [Log](#log) instance.

- input
  - consumer?: [LogConsumer](#logconsumer) (default: consoleLogConsumerFactory return value);
  - logLevel: [LogLevel](#loglevel) (default: 'info');
  - namespace: string[]; (default: [])
- output
  - [Log](#log) instance

Example

```ts
import { Log } from '@kksiuda/logger';

const log = new Logger();
log.debug('debug data');
log.info('some information');
log.warn('warning');
log.error(new Error('error message'));
// by default these logs will be output to console using consoleLogConsumerFactory default parameters
```

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