---
title: "Initializes the logger by specifying two named pipes (i.e. for the logs and metrics output)."
method: PUT
path: "/logger"
---

# Initializes the logger by specifying two named pipes (i.e. for the logs and metrics output).

`PUT /logger`

## Request body

- Logger — Describes the configuration option for the logging capability.
  - `log_fifo` string — The named pipe for the human readable log output.
  - `metrics_fifo` string — The named pipe where the JSON-formatted metrics will be flushed.
  - `level` 'Error' | 'Warning' | 'Info' | 'Debug' — Set the level.
  - `show_level` boolean — Whether or not to output the level in the logs.
  - `show_log_origin` boolean — Whether or not to include the file path and line number of the log's origin.

## Response `204`

Logger created.

## Other responses

- `400` — Logger cannot be initialized due to bad input.
- `default` — Internal server error.

---

[API](https://skmtc.dev/solo-io/apis/firecracker-api.md) · [All operations](https://skmtc.dev/solo-io/apis/firecracker-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/solo-io/firecracker-api/revisions/6e4082be4a32/schema)
