# @blocklet/logger

> A library to facilitate Blocklet logging

Latest version **1.17.12** (published 2026-04-22) · Apache-2.0 license · 0 weekly downloads

## Install

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

## Health

**Score 45/100 (D)** — status: active.

Positive: no vulnerabilities.

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

## Facts

| | |
|---|---|
| Version | 1.17.12 |
| Published | 2026-04-22 |
| First published | 2022-07-09 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | polunzh |
| Maintainers | wangshijun, gxw |
| Keywords | blocklet |

## Links

- npm: https://www.npmjs.com/package/@blocklet/logger
- Repository: https://github.com/ArcBlock
- npm.io page: https://npm.io/package/@blocklet/logger

## Dependencies (1)

- [@abtnode/logger](https://npm.io/package/@abtnode/logger.md) 1.17.12

## Recent versions

- 1.17.12 (latest) — 2026-04-22
- 1.17.13-beta-20260613-094425-b81920c8 (beta) — 2026-06-13
- 1.16.29-next-680cf137 (next) — 2024-07-19
- 1.17.13-beta-20260512-042419-7b556a38 — 2026-05-12
- 1.17.13-beta-20260512-004004-69bacba8 — 2026-05-12
- 1.17.12-beta-20260422-093007-b389a838 — 2026-04-22
- 1.17.12-beta-20260422-090318-b389a838 — 2026-04-22
- 1.17.12-beta-20260422-080315-acb4f448 — 2026-04-22
- 1.17.12-beta-20260422-075550-7bd6bb1a — 2026-04-22
- 1.17.12-beta-20260422-010020-a0ced20c — 2026-04-22
- 1.17.12-beta-20260422-003844-3e4843bf — 2026-04-22
- 1.17.12-beta-20260422-003256-4dcff725 — 2026-04-22
- 1.17.12-beta-20260420-082539-2b9be931 — 2026-04-20
- 1.17.12-beta-20260420-075606-d7d7a9c7 — 2026-04-20
- 1.17.12-beta-20260420-072401-57af6185 — 2026-04-20
- … 942 more at https://npm.io/package/@blocklet/logger/versions

## README

# Blocklet logger

A library to facilitate Blocklet logging.

## Usage

```javascript
const logger = require('@blocklet/logger');

// log
log = logger('demo');
log.info('this is demo', { id: 'test-id' });
log.warn('this is demo', { id: 'test-id' });
log.error('this is demo', { id: 'test-id' });
log.debug('this is demo', { id: 'test-id' });

// access log
app.use(morgan('combined', { stream: logger.getAccessLogStream() }));
```

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