{"id":21517584,"url":"https://github.com/tek/polysemy-log","last_synced_at":"2026-03-11T04:31:37.347Z","repository":{"id":50397237,"uuid":"352172188","full_name":"tek/polysemy-log","owner":"tek","description":"Polysemy effects for logging","archived":false,"fork":false,"pushed_at":"2025-12-13T12:33:13.000Z","size":240,"stargazers_count":5,"open_issues_count":3,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-17T07:57:03.396Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tek.png","metadata":{"files":{"readme":"readme.md","changelog":null,"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,"zenodo":null}},"created_at":"2021-03-27T20:37:27.000Z","updated_at":"2025-12-13T12:33:16.000Z","dependencies_parsed_at":"2024-05-28T02:41:46.590Z","dependency_job_id":"8d735cfb-f5e5-472a-b76b-fdb523d94344","html_url":"https://github.com/tek/polysemy-log","commit_stats":{"total_commits":90,"total_committers":2,"mean_commits":45.0,"dds":"0.43333333333333335","last_synced_commit":"31f276a7ff89080fd48b041646d378e437afb79f"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/tek/polysemy-log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek%2Fpolysemy-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek%2Fpolysemy-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek%2Fpolysemy-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek%2Fpolysemy-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tek","download_url":"https://codeload.github.com/tek/polysemy-log/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek%2Fpolysemy-log/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30370797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"online","status_checked_at":"2026-03-11T02:00:07.027Z","response_time":84,"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":[],"created_at":"2024-11-24T00:43:03.875Z","updated_at":"2026-03-11T04:31:37.331Z","avatar_url":"https://github.com/tek.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e Log thrice, debug once.\n\u003e\n\u003e –– Г. Любенов\n\n# About\n\nA common interface for the polysemy logging backend adapters.\n\nAn example program using a simple logger with a custom data type:\n\n```haskell\nimport Polysemy.Conc (runConc)\n\nimport qualified Polysemy.Log as Log\nimport Polysemy.Log (DataLog, Log, interpretDataLogStdout, interpretLogStdoutConc)\nimport qualified Polysemy.Log.Effect.DataLog as DataLog\n\nprogSimple ::\n  Member Log r =\u003e\n  Sem r ()\nprogSimple = do\n  Log.debug \"debug\"\n  Log.warn \"warn\"\n\ndata Message =\n  Message {\n    severity :: Text,\n    message :: Text\n  }\n  deriving stock (Eq, Show)\n\nprogData ::\n  Member (DataLog Message) r =\u003e\n  Sem r ()\nprogData = do\n  DataLog.dataLog (Message \"warn\" \"warning!\")\n  DataLog.local (\\ msg@Message{message} -\u003e msg {message = \"context: \" \u003c\u003e message}) do\n    DataLog.dataLog (Message \"error\" \"segfault!\")\n\nmain :: IO ()\nmain =\n  runConc do\n    interpretLogStdoutConc progSimple\n    interpretDataLogStdout progData\n```\n\nFor more documentation, please consult Hackage:\n* [polysemy-log](https://hackage.haskell.org/package/polysemy-log)\n* [polysemy-log-co](https://hackage.haskell.org/package/polysemy-log-co)\n* [polysemy-log-di](https://hackage.haskell.org/package/polysemy-log-di)\n\n# Building the Project\n\nThe build is defined in [nix], supporting `flake` and legacy `nix-build`.\n\nWith `nix-build`:\n\n```bash\nnix-build -A defaultPackage\nnix-build -A packages.x86_64-linux.polysemy-log\n```\n\nWith `nix flake`:\n\n```\nnix build\nnix build '.#polysemy-log\n```\n\nTo run all tests:\n\n```bash\nnix flake check\n```\n\n[nix]: https://nixos.org/manual/nix/unstable\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftek%2Fpolysemy-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftek%2Fpolysemy-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftek%2Fpolysemy-log/lists"}