elastic / elastic/ecs-logging-nodejs

Does not allow for log level configuration

Open
#183 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
69
Forks
45
PR merge metrics
No merged PRs in 30d

Description

It does not seem to be possible to configure the log level of pino when using esc format. I would like to configure the log level per environment and this does not seem possible with esc format.

## Current Behaviour

```js
const logger = pino(ecsFormat({ serviceName: "helloworld" }))
```

## Expected Behaviour

```js
const logger = pino(ecsFormat({ serviceName: "helloworld", logLevel: "info" }))
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.