# pino-smart

> Pino 日志行美化工具

Latest version **0.0.9** (published 2024-06-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install pino-smart
pnpm add pino-smart
yarn add pino-smart
bun add pino-smart
```

## 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.0.9 |
| Published | 2024-06-03 |
| First published | 2021-04-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 11.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | DvShu |
| Maintainers | lucidus |
| Keywords | pino, pretty, logger, smart, beautify, printer, format, ndjson |

## Links

- npm: https://www.npmjs.com/package/pino-smart
- Repository: https//gitee.com/towardly/ph
- Homepage: https://gitee.com/towardly/ph/tree/master/packages/pino-smart
- Issues: https://gitee.com/towardly/ph/issues
- npm.io page: https://npm.io/package/pino-smart

## Dependencies (3)

- [sonic-boom](https://npm.io/package/sonic-boom.md) ^3.7.0
- [ansi-colors](https://npm.io/package/ansi-colors.md) ^4.1.3
- [pino-abstract-transport](https://npm.io/package/pino-abstract-transport.md) ^1.1.0

## 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.0.9 (latest) — 2024-06-03
- 0.0.8 — 2023-07-21
- 0.0.7 — 2023-07-20
- 0.0.6 — 2023-05-11
- 0.0.5 — 2022-03-03
- 0.0.4 — 2022-03-01
- 0.0.3 — 2022-02-25
- 0.0.2 — 2022-02-25
- 0.0.1 — 2021-04-23

## README

# pino-smart

---

Pino 日志行美化工具

### 安装

```
npm install pino-smart
```

### 使用

```Javascript
const pino = require('pino')

const transport = pino.transport({
  target: 'pino-smart'
})
let logger = pino(transport)

logger.error('err')
logger.info('info')
logger.error(new Error('error msg'))

// output:
/*
19:42:16 [ERROR] -- err
19:42:16 [INFO] -- info
19:42:16 [ERROR] -- error msg
Error: error msg
    at Object.<anonymous> (E:\workspace1\ph-work\packages\pino-smart\test.js:10:14)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.external_module_.Module._load (E:\workspace1\ph-work\.pnp.cjs:12973:14)
    at Function.moduleExports.runMain (E:\workspace1\ph-work\.pnp.cjs:13174:31)
    at node:internal/main/run_main_module:17:47
/*
```

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