{"id":18581940,"url":"https://github.com/coder/ts-logger","last_synced_at":"2025-04-10T11:35:43.904Z","repository":{"id":38734963,"uuid":"199913602","full_name":"coder/ts-logger","owner":"coder","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-01T12:50:45.000Z","size":546,"stargazers_count":13,"open_issues_count":8,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T22:35:30.984Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/coder.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}},"created_at":"2019-07-31T19:03:19.000Z","updated_at":"2025-02-21T15:51:39.000Z","dependencies_parsed_at":"2023-11-14T19:44:48.306Z","dependency_job_id":null,"html_url":"https://github.com/coder/ts-logger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder%2Fts-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder%2Fts-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder%2Fts-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder%2Fts-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coder","download_url":"https://codeload.github.com/coder/ts-logger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248208688,"owners_count":21065205,"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":[],"created_at":"2024-11-07T00:08:29.179Z","updated_at":"2025-04-10T11:35:38.893Z","avatar_url":"https://github.com/coder.png","language":"TypeScript","readme":"# Logger\n\nBeautiful logging inspired by https://github.com/uber-go/zap.\n\n- Built for node and the browser\n- Zero dependencies\n- Uses groups in the browser to reduce clutter\n\n## Example Usage\n\n```javascript\nimport { field, logger } from \"@coder/logger\";\n\nlogger.info(\"Loading container\",\n\tfield(\"container_id\", container.id_str),\n\tfield(\"organization_id\", organization.id_str));\n```\n\n## Formatting\n\nBy default the logger uses a different formatter depending on whether it detects\nit is running in the browser or not. A custom formatter can be set:\n\n```javascript\nimport { logger, Formatter } from \"@coder/logger\";\n\nclass MyFormatter extends Formatter {\n\t// implementation ...\n}\n\nlogger.formatter = new MyFormatter();\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoder%2Fts-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoder%2Fts-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoder%2Fts-logger/lists"}