{"id":32190933,"url":"https://github.com/lagenorhynque/duct.module.cambium","last_synced_at":"2026-02-21T17:35:30.800Z","repository":{"id":51241151,"uuid":"219478868","full_name":"lagenorhynque/duct.module.cambium","owner":"lagenorhynque","description":"Duct module for Cambium, a library for structured (JSON) logging in Clojure","archived":false,"fork":false,"pushed_at":"2024-01-03T17:41:48.000Z","size":33,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-22T01:20:11.174Z","etag":null,"topics":["cambium","clojure","duct","logging"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lagenorhynque.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":"2019-11-04T10:50:20.000Z","updated_at":"2024-01-03T16:28:07.000Z","dependencies_parsed_at":"2025-10-22T01:17:56.047Z","dependency_job_id":"30e0904a-79d1-43ac-a8ed-6e277393dbf8","html_url":"https://github.com/lagenorhynque/duct.module.cambium","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/lagenorhynque/duct.module.cambium","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lagenorhynque%2Fduct.module.cambium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lagenorhynque%2Fduct.module.cambium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lagenorhynque%2Fduct.module.cambium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lagenorhynque%2Fduct.module.cambium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lagenorhynque","download_url":"https://codeload.github.com/lagenorhynque/duct.module.cambium/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lagenorhynque%2Fduct.module.cambium/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29688299,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T15:51:39.154Z","status":"ssl_error","status_checked_at":"2026-02-21T15:49:03.425Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cambium","clojure","duct","logging"],"created_at":"2025-10-22T01:02:05.271Z","updated_at":"2026-02-21T17:35:25.792Z","avatar_url":"https://github.com/lagenorhynque.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# duct.module.cambium\n\n[![Clojars Project](https://img.shields.io/clojars/v/duct.module.cambium.svg)](https://clojars.org/duct.module.cambium)\n[![Circle CI](https://circleci.com/gh/lagenorhynque/duct.module.cambium.svg?style=shield)](https://circleci.com/gh/lagenorhynque/duct.module.cambium)\n[![codecov](https://codecov.io/gh/lagenorhynque/duct.module.cambium/branch/master/graph/badge.svg)](https://codecov.io/gh/lagenorhynque/duct.module.cambium)\n\nA Duct module that adds logging to a configuration, using [Cambium](https://cambium-clojure.github.io/). This is an alternative to [duct/module.logging](https://github.com/duct-framework/module.logging).\n\n## Installation\n\nTo install, add the following to your project `:dependencies`:\n\n```clj\n[duct.module.cambium \"1.3.1\"]\n```\n\n## Usage\n\nTo add this module to your configuration, add a reference to `:duct.module/cambium`:\n\n```edn\n{:duct.profile/base\n {:duct.core/project-ns some-api\n\n :duct.profile/dev   #duct/include \"dev\"\n :duct.profile/local #duct/include \"local\"\n :duct.profile/prod  {}\n\n :duct.module/cambium {}}\n```\n\n- `:duct.module/cambium` can have one option:\n    - `:top-level-field`: top-level field name for nested data of MDC map (default: `:option`)\n\nAnd add `logback.xml` (or `logback-test.xml`) as below to the resource path.\n\n```xml\n\u003cconfiguration\u003e\n  \u003cappender name=\"STDOUT\" class=\"ch.qos.logback.core.ConsoleAppender\"\u003e\n    \u003cencoder class=\"ch.qos.logback.core.encoder.LayoutWrappingEncoder\"\u003e\n      \u003clayout class=\"cambium.logback.json.FlatJsonLayout\"\u003e\n        \u003cjsonFormatter class=\"ch.qos.logback.contrib.jackson.JacksonJsonFormatter\"\u003e\n          \u003c!-- prettyPrint is probably ok in dev, but usually not ideal in production: --\u003e\n          \u003cprettyPrint\u003etrue\u003c/prettyPrint\u003e\n        \u003c/jsonFormatter\u003e\n        \u003c!-- \u003ccontext\u003eapi\u003c/context\u003e --\u003e\n        \u003ctimestampFormat\u003eyyyy-MM-dd'T'HH:mm:ss.SSS'Z'\u003c/timestampFormat\u003e\n        \u003ctimestampFormatTimezoneId\u003eUTC\u003c/timestampFormatTimezoneId\u003e\n        \u003cappendLineSeparator\u003etrue\u003c/appendLineSeparator\u003e\n      \u003c/layout\u003e\n    \u003c/encoder\u003e\n  \u003c/appender\u003e\n  \u003croot level=\"debug\"\u003e\n    \u003cappender-ref ref=\"STDOUT\" /\u003e\n  \u003c/root\u003e\n\u003c/configuration\u003e\n```\n\n## Examples\n\n- [lagenorhynque/clj-rest-api](https://github.com/lagenorhynque/clj-rest-api): an example REST API based on [Pedestal](https://github.com/pedestal/pedestal) \u0026 Duct\n- [lagenorhynque/aqoursql](https://github.com/lagenorhynque/aqoursql): an example GraphQL API based on [Lacinia-Pedestal](https://github.com/walmartlabs/lacinia-pedestal) \u0026 Duct\n- [lagenorhynque/route-guide](https://github.com/lagenorhynque/route-guide): an example gRPC API based on [Protojure](https://github.com/protojure/lib), Pedestal \u0026 Duct\n\n## License\n\nCopyright © 2019 Kent OHASHI\n\nThis program and the accompanying materials are made available under the\nterms of the Eclipse Public License 2.0 which is available at\nhttp://www.eclipse.org/legal/epl-2.0.\n\nThis Source Code may also be made available under the following Secondary\nLicenses when the conditions for such availability set forth in the Eclipse\nPublic License, v. 2.0 are satisfied: GNU General Public License as published by\nthe Free Software Foundation, either version 2 of the License, or (at your\noption) any later version, with the GNU Classpath Exception which is available\nat https://www.gnu.org/software/classpath/license.html.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flagenorhynque%2Fduct.module.cambium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flagenorhynque%2Fduct.module.cambium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flagenorhynque%2Fduct.module.cambium/lists"}