# @dracul/logger-backend

> Dracul logger provide several winston loggers configurations and factories ready to use

Latest version **1.46.0** (published 2026-05-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install @dracul/logger-backend
pnpm add @dracul/logger-backend
yarn add @dracul/logger-backend
bun add @dracul/logger-backend
```

## Health

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

Positive: no vulnerabilities.

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

## Facts

| | |
|---|---|
| Version | 1.46.0 |
| Published | 2026-05-08 |
| First published | 2020-10-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 48.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Cristian Incarnato |
| Maintainers | cincarnato |

## Links

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

## Recent versions

- 1.46.0 (latest) — 2026-05-08
- 1.44.0 — 2026-02-05
- 1.40.0 — 2025-08-28
- 1.35.0 — 2024-11-07
- 1.34.0 — 2024-05-23
- 2.1.0 — 2024-05-20
- 1.29.2 — 2024-05-20
- 1.24.0 — 2023-11-13
- 1.23.1 — 2023-08-24
- 1.20.11 — 2023-05-24
- 1.16.3 — 2023-02-14
- 2.0.0 — 2022-07-04
- 1.7.12 — 2022-05-24
- 1.7.0 — 2022-04-04
- 1.6.3 — 2022-03-13
- … 17 more at https://npm.io/package/@dracul/logger-backend/versions

## README

# Dracul Logger Module
Dracul logger provide several winston loggers configurations and factories ready to use


### ENV

```$xslt
### LOG ENVIRONMENT VARIABLES

# LOG LEVEL: error, warning, info, debug
LOG_LEVEL=debug

# REQUEST
LOG_REQUEST=ON
LOG_RESPONSE_TIME=ON
LOG_GQL_ERRORS=ON

# LOG TRANSPORTS
LOG_TRANSPORT_CONSOLE=ON
LOG_TRANSPORT_COMBINED=ON
LOG_TRANSPORT_ERROR=ON
LOG_TRANSPORT_ACCESS=ON
LOG_TRANSPORT_GQL_ERROR=ON
LOG_TRANSPORT_GQL_RESPONSE=ON

# LOG COLORIZE: ON / OFF
LOG_COLORIZE=ON

# Max log file size in bytes. Ex: 10000000 Bytes == 1 MegaByte
LOG_FILE_MAX_SIZE=10000000

# Number of max files
LOG_FILE_MAX_FILES=3

# LOG MODES: TEXT / JSON
LOG_MODE=TEXT
```


## Default logger

Setup a default logger with 3 transports **console**, **comined.log** and **error.log**

## Express middleware Request Logger

Setup an express middleware for log requests

####Request items in log

- Method
- Path
- IP
- User
- Graphql Operation name  (if is present)

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