{"id":19167002,"url":"https://github.com/powerman/slogx","last_synced_at":"2026-06-17T08:31:47.989Z","repository":{"id":176493141,"uuid":"656812793","full_name":"powerman/slogx","owner":"powerman","description":"Golang extensions for log/slog","archived":false,"fork":false,"pushed_at":"2026-04-13T00:06:24.000Z","size":212,"stargazers_count":0,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-20T03:51:15.119Z","etag":null,"topics":["go","golang","golang-library","logger-middleware","logging","logging-library"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/powerman.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-06-21T17:35:14.000Z","updated_at":"2026-04-07T11:28:49.000Z","dependencies_parsed_at":"2026-02-23T16:05:26.170Z","dependency_job_id":null,"html_url":"https://github.com/powerman/slogx","commit_stats":null,"previous_names":["powerman/slogx"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/powerman/slogx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powerman%2Fslogx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powerman%2Fslogx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powerman%2Fslogx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powerman%2Fslogx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/powerman","download_url":"https://codeload.github.com/powerman/slogx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powerman%2Fslogx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34441282,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","golang-library","logger-middleware","logging","logging-library"],"created_at":"2024-11-09T09:35:19.266Z","updated_at":"2026-06-17T08:31:47.984Z","avatar_url":"https://github.com/powerman.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Golang extensions for log/slog\n\n[![License MIT](https://img.shields.io/badge/license-MIT-royalblue.svg)](LICENSE)\n[![Go version](https://img.shields.io/github/go-mod/go-version/powerman/slogx?color=blue)](https://go.dev/)\n[![Test](https://img.shields.io/github/actions/workflow/status/powerman/slogx/test.yml?label=test)](https://github.com/powerman/slogx/actions/workflows/test.yml)\n[![Coverage Status](https://raw.githubusercontent.com/powerman/slogx/gh-badges/coverage.svg)](https://github.com/powerman/slogx/actions/workflows/test.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/powerman/slogx)](https://goreportcard.com/report/github.com/powerman/slogx)\n[![Release](https://img.shields.io/github/v/release/powerman/slogx?color=blue)](https://github.com/powerman/slogx/releases/latest)\n[![Go Reference](https://pkg.go.dev/badge/github.com/powerman/slogx.svg)](https://pkg.go.dev/github.com/powerman/slogx)\n\n![Linux | amd64 arm64 armv7 ppc64le s390x riscv64](https://img.shields.io/badge/Linux-amd64%20arm64%20armv7%20ppc64le%20s390x%20riscv64-royalblue)\n![macOS | amd64 arm64](https://img.shields.io/badge/macOS-amd64%20arm64-royalblue)\n![Windows | amd64 arm64](https://img.shields.io/badge/Windows-amd64%20arm64-royalblue)\n\n## Features\n\n### LayoutHandler\n\n`LayoutHandler` is an alternative to `slog.TextHandler`\ndesigned to make output easier to read with:\n\n- Compact output for given attrs by replacing \" key=\" prefix before value.\n- Reorder given attrs by moving them before message (prefix) or after other attrs (suffix).\n- Vertical align for prefix attrs by enforcing min/max value width.\n- Color output for given attrs.\n\n## Recommendations\n\n### Use NewContextHandler with linter\n\nDisable non-Context slog functions (e.g. `slog.Info`) and methods using linter.\n\nExample golangci-lint v2 config:\n\n```yaml\nlinters:\n  settings:\n    sloglint:\n      context: all\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowerman%2Fslogx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpowerman%2Fslogx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowerman%2Fslogx/lists"}