docs: guide - logs options in Dagger

Signed-off-by: guillaume <guillaume.derouville@gmail.com>
This commit is contained in:
guillaume 2022-04-12 18:40:03 +02:00
parent 700bd2f2aa
commit 467620f094

View File

@ -0,0 +1,23 @@
---
slug: /1228/better-logs
displayed_sidebar: europa
---
# How can I have better logs ?
Dagger exposes 2 logging format options:
- `--log-format auto|plain|tty|json`
The default mode is `auto`. If you want to keep each actions' logs, use the `plain` mode
- `--log-level panic|fatal|error|warn|info|debug|trace`
`debug` is useful to check whether an explicit dependency has been found between two actions.
You can also export these options as env variables:
```console
export DAGGER_LOG_FORMAT="plain"
export DAGGER_LOG_LEVEL="debug"
```