{"id":23070165,"url":"https://github.com/strojure/slf4j-mdc","last_synced_at":"2025-07-19T02:33:07.832Z","repository":{"id":123918320,"uuid":"499531123","full_name":"strojure/slf4j-mdc","owner":"strojure","description":"Clojure utility for SLF4J logging system's MDC (Mapped Diagnostic Context)","archived":false,"fork":false,"pushed_at":"2023-03-09T14:33:24.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"default","last_synced_at":"2025-07-10T15:13:44.749Z","etag":null,"topics":["clojure","logging","mdc","slf4j"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/strojure.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-06-03T13:56:33.000Z","updated_at":"2023-03-07T19:25:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"6f352006-b7c6-4556-9345-84e95b24e07f","html_url":"https://github.com/strojure/slf4j-mdc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/strojure/slf4j-mdc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strojure%2Fslf4j-mdc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strojure%2Fslf4j-mdc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strojure%2Fslf4j-mdc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strojure%2Fslf4j-mdc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strojure","download_url":"https://codeload.github.com/strojure/slf4j-mdc/tar.gz/refs/heads/default","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strojure%2Fslf4j-mdc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265876951,"owners_count":23842956,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["clojure","logging","mdc","slf4j"],"created_at":"2024-12-16T06:19:54.074Z","updated_at":"2025-07-19T02:33:07.815Z","avatar_url":"https://github.com/strojure.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# slf4j-mdc\n\nClojure utility for SLF4J logging system's MDC (Mapped Diagnostic Context).\n\n[![Clojars Project](https://img.shields.io/clojars/v/com.github.strojure/slf4j-mdc.svg)](https://clojars.org/com.github.strojure/slf4j-mdc)\n\n## Design goals\n\n* Helper functionality to work with MDC.\n\n## Usage\n\n```clojure\n(ns readme.usage\n  (:require [clojure.tools.logging :as log]\n            [strojure.slf4j-mdc.core :as mdc]))\n\n(defn- update-user\n  [user-id, data]\n  (with-open [_ (mdc/put-closeable \"user-id\" (str user-id))\n              _ (mdc/put-closeable \"empty\" nil)]\n    (log/debug \"Update user\" data)))\n\n(comment\n  (update-user 100 {:name \"Name\"})\n  ;; DEBUG readme.usage [ user-id=100 ]\n  ;; - Update user {:name Name}\n\n  (with-open [_ (mdc/put-closeable \"request-id\" \"64024bf5-862a-4e9f-a827-b924fc04f6d8\")]\n    (update-user 100 {:name \"Name\"}))\n  ;; DEBUG readme.usage [ request-id=64024bf5-862a-4e9f-a827-b924fc04f6d8, user-id=100 ]\n  ;; - Update user {:name Name}\n  )\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrojure%2Fslf4j-mdc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrojure%2Fslf4j-mdc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrojure%2Fslf4j-mdc/lists"}