{"id":15768169,"url":"https://github.com/thk2b/xcontrol-logger","last_synced_at":"2025-06-17T01:06:15.574Z","repository":{"id":57401109,"uuid":"127483103","full_name":"thk2b/xcontrol-logger","owner":"thk2b","description":"A logger for xcontrol controllers","archived":false,"fork":false,"pushed_at":"2018-05-11T16:31:59.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-02T17:59:40.015Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/thk2b.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-03-30T23:51:12.000Z","updated_at":"2018-05-11T16:32:38.000Z","dependencies_parsed_at":"2022-09-19T03:50:25.321Z","dependency_job_id":null,"html_url":"https://github.com/thk2b/xcontrol-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/thk2b%2Fxcontrol-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thk2b%2Fxcontrol-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thk2b%2Fxcontrol-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thk2b%2Fxcontrol-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thk2b","download_url":"https://codeload.github.com/thk2b/xcontrol-logger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thk2b%2Fxcontrol-logger/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":258219674,"owners_count":22666610,"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-10-04T14:00:34.319Z","updated_at":"2025-06-17T01:06:15.541Z","avatar_url":"https://github.com/thk2b.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"`npm install --save xcontrol-logger`\n\n# xcontrol-logger\nA logger for xcontrol controllers\n\n# usage\n\nBasic logging\n```js\nimport Logger from 'xcontrol-logger'\nimport Value from 'xcontrol/lib/models/Value'\n\nconst LoggedValue = Logger ( Value )\n\nconst value = new LoggedValue( 1 ) // console: 1\nvalue.set(2) // console: 2\n```\n\nCustom logging\n\n\n```js\nimport Logger from 'xcontrol-logger'\nimport Value from 'xcontrol/lib/models/Value'\n\nconst MyLogger = Super =\u003e class extends Logger ( Super ) {\n    log(nextStore){\n        console.log('my log:')\n        super.log(nextStore)\n    }\n}\n\nconst value = new ( MyLogger ( Value ))('hello') // console: my log: hello\nvalue.set('new value') // console: my log: new value\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthk2b%2Fxcontrol-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthk2b%2Fxcontrol-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthk2b%2Fxcontrol-logger/lists"}