{"id":16639002,"url":"https://github.com/cca-io/rescript-logger","last_synced_at":"2025-07-27T02:35:00.970Z","repository":{"id":50941380,"uuid":"160376907","full_name":"cca-io/rescript-logger","owner":"cca-io","description":"Simple logger library for ReScript apps.","archived":false,"fork":false,"pushed_at":"2021-05-27T07:47:39.000Z","size":12,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-03T00:05:30.582Z","etag":null,"topics":["logger","logging","rescript"],"latest_commit_sha":null,"homepage":"","language":"ReScript","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/cca-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-04T15:16:09.000Z","updated_at":"2023-01-20T14:03:46.000Z","dependencies_parsed_at":"2022-08-25T12:11:34.016Z","dependency_job_id":null,"html_url":"https://github.com/cca-io/rescript-logger","commit_stats":null,"previous_names":["cca-io/re-logger"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/cca-io/rescript-logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cca-io%2Frescript-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cca-io%2Frescript-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cca-io%2Frescript-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cca-io%2Frescript-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cca-io","download_url":"https://codeload.github.com/cca-io/rescript-logger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cca-io%2Frescript-logger/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267289443,"owners_count":24064728,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"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":["logger","logging","rescript"],"created_at":"2024-10-12T07:04:46.732Z","updated_at":"2025-07-27T02:35:00.953Z","avatar_url":"https://github.com/cca-io.png","language":"ReScript","readme":"# rescript-logger\n\nSimple logger library for [ReScript](https://rescript-lang.org/) apps.\n\n## Design Goals\n\n1. Do not require a PPX, but still provide a way to include the module name in the log output.\n2. Pluggable logger implementation so that code shared between e.g. React and React Native can use a platform-specific implementation.\n\n## Installation\n\n```shell\n# yarn\nyarn add @cca-io/rescript-logger\n\n# or npm\nnpm install @cca-io/rescript-logger\n```\n\nThen add rescript-logger to the dependencies in your `bsconfig.json`, e.g.:\n\n```\n{\n  \"name\": \"my-app\",\n  ...\n  \"bs-dependencies\": [\"@rescript/react\", \"@cca-io/rescript-logger\"],\n  ...\n}\n```\n\n## Usage\n\nExample:\n\n```rescript\nmodule Log = unpack(ResLogger.make(__MODULE__))\n\nLog.info(\"Starting\")\n\n// ...\n\nLog.error2(\"Startup error\", error)\n```\n\nThe actual logger implementation is pluggable, so it can be swapped out e.g. for usage with React Native:\n\n```rescript\nResLogger.setLoggerImpl(module(MyNativeLoggerImpl))\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcca-io%2Frescript-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcca-io%2Frescript-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcca-io%2Frescript-logger/lists"}