---
title: "Get the content of a log file"
method: GET
path: "/api/logs/{file}"
tags: ["Logs"]
---

# Get the content of a log file

`GET /api/logs/{file}`

## Path parameters

- `file` string, required

## Query parameters

- `limit` integer
- `offset` integer
- `channels` string
- `levels` string

## Response `200`

The log file content

- object
  - `name` string — The file name without extension.
  - `size` integer — The file size in bytes
  - `mtime` string — Last modification date of the file
  - `lines` integer — Number of lines in the log file
  - `content` object[]
    - `datetime` string
    - `channel` string
    - `level` string
    - `message` string
    - `context` object, nullable
    - `extra` object

## Other responses

- `404` — If the file was not found

---

[API](https://skmtc.net/contao/apis/contao-manager-api.md) · [All operations](https://skmtc.net/contao/apis/contao-manager-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/contao/contao-manager-api/revisions/074d8046de13/schema)
