# exframe-logger

> Logging framework module

Latest version **3.8.7** (published 2025-02-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install exframe-logger
pnpm add exframe-logger
yarn add exframe-logger
bun add exframe-logger
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

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

Warnings: low downloads; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.8.7 |
| Published | 2025-02-28 |
| First published | 2016-11-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=14.0.0 |
| Dependencies | 4 |
| Unpacked size | 24.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Exzeo |
| Maintainers | exzeo_usa, exzeodevops |

## Links

- npm: https://www.npmjs.com/package/exframe-logger
- Repository: https://bitbucket.org/exzeo-usa/exframe
- Homepage: https://bitbucket.org/exzeo-usa/exframe#readme
- Issues: https://bitbucket.org/exzeo-usa/exframe/issues
- npm.io page: https://npm.io/package/exframe-logger

## Dependencies (4)

- [winston](https://npm.io/package/winston.md) ^3.7.2
- [app-root-path](https://npm.io/package/app-root-path.md) ^3.0.0
- [exframe-utilities](https://npm.io/package/exframe-utilities.md) ^1.2.0
- [json-stringify-safe](https://npm.io/package/json-stringify-safe.md) ^5.0.1

## Recent versions

- 3.8.7 (latest) — 2025-02-28
- 3.8.6 — 2025-02-24
- 3.8.5 — 2023-10-10
- 3.8.4 — 2023-09-07
- 3.8.3 — 2023-08-15
- 3.8.2 — 2023-07-17
- 3.8.1 — 2023-06-22
- 3.8.0 — 2023-06-14
- 3.7.7 — 2023-04-24
- 3.7.6 — 2023-02-17
- 3.7.5 — 2022-08-31
- 3.7.4 — 2022-05-09
- 3.7.3 — 2022-04-22
- 3.7.2 — 2022-04-07
- 3.7.1 — 2022-04-01
- … 24 more at https://npm.io/package/exframe-logger/versions

## README

exframe Logging Module
====================================
Application level logging for the Harmony Framework. It uses Winston at the core.

### Log Levels

* debug
* info
* warn
* error

### Use
```javascript
const Logger = require("logger").create();
```

### Examples
```javascript
logger.info('Info Message')
logger.info('Test error', { metadata: "test-log", count: 1 })
logger.error('Error message', { metadata: "test-error", count: 1 })
logger.warn('Warning message', { metadata: "test-warning" })
logger.debug("Debug message", { metadata: "test-debug", count: 1 })
```

### Tests
```javascript
npm run test
```

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