---
title: "slog-argument-shape"
description: "Detect malformed or inconsistent log/slog arguments."
image: "https://strider.gempir.com/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://strider.gempir.com/llms.txt
> Use this file to discover all available pages before exploring further.

# slog-argument-shape

**Default severity:** `warning`

Reports odd key/value tails, non-string loose keys, and calls that mix
`slog.Attr` values with loose key/value pairs.

## Bad

```go
slog.Info("request", 42, method, "status")
```

## Good

```go
slog.Info("request", "method", method, "status", status)
```

Source: https://strider.gempir.com/analyzers/slog-argument-shape/index.mdx
