{"id":19245092,"url":"https://github.com/rxtoolkit/logs","last_synced_at":"2025-08-02T00:05:22.201Z","repository":{"id":214798667,"uuid":"334438842","full_name":"rxtoolkit/logs","owner":"rxtoolkit","description":"🗒️ RxJS utilities for backend logging","archived":false,"fork":false,"pushed_at":"2024-02-16T18:40:11.000Z","size":296,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T14:17:11.799Z","etag":null,"topics":["fp","functional-programming","logging","observables","package","reactive-programming","rxjs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/rxtoolkit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2021-01-30T14:59:56.000Z","updated_at":"2024-01-02T15:44:12.000Z","dependencies_parsed_at":"2023-12-30T22:07:21.490Z","dependency_job_id":"a4a47164-4caa-4e05-86ea-614cb518622d","html_url":"https://github.com/rxtoolkit/logs","commit_stats":null,"previous_names":["rxtoolkit/logging-utils","rxtoolkit/logs"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxtoolkit%2Flogs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxtoolkit%2Flogs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxtoolkit%2Flogs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxtoolkit%2Flogs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rxtoolkit","download_url":"https://codeload.github.com/rxtoolkit/logs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240331361,"owners_count":19784646,"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":["fp","functional-programming","logging","observables","package","reactive-programming","rxjs"],"created_at":"2024-11-09T17:26:37.189Z","updated_at":"2025-02-23T15:15:43.494Z","avatar_url":"https://github.com/rxtoolkit.png","language":"JavaScript","readme":"# @rxtk/logs\n\n## Getting started\n\n```bash\nnpm i @rxtk/logs\n```\n\n```bash\nyarn add @rxtk/logs\n```\n\n## API\n\n### logger\n```javascript\nimport logger from '@rxtk/logs';\n\n// Log info\nconst data = {foo: 'bar'};\nlogger.info('an info message', data);\nlogger.debug('a debug message', data);\n\n// Log an error\nconst err = new Error('ruh roh');\nlogger.error(err.message, {stack: err.stack, ...data});\n```\n\n### toLog\n```javascript\nimport {of} from 'rxjs';\nimport logger from '@rxtk/logs';\n\nconst input$ = of(...[{data: 'foo'}, {data:'bar'}]);\ninput$.pipe(logger.toLog('somelabel'));\ninput$.subscribe(); // will log the values of each item emitted with the provided label\n```\n\n### trace\n```javascript\nimport {throwError} from 'rxjs';\nimport logger from '@rxtk/logs';\n\nconst err = new Error('zoinks!');\nconst input$ = throwError(err);\ninput$.pipe(logger.trace());\ninput$.subscribe(); // will log any errors emitted including their stack trace\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxtoolkit%2Flogs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frxtoolkit%2Flogs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxtoolkit%2Flogs/lists"}