{"id":18507834,"url":"https://github.com/espadrine/multilog","last_synced_at":"2025-05-14T09:17:23.295Z","repository":{"id":3375335,"uuid":"4422776","full_name":"espadrine/multilog","owner":"espadrine","description":"A fun and collateral way to print logs!","archived":false,"fork":false,"pushed_at":"2014-11-22T10:12:25.000Z","size":232,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-17T02:17:16.868Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/espadrine.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}},"created_at":"2012-05-23T16:57:12.000Z","updated_at":"2014-11-22T10:12:25.000Z","dependencies_parsed_at":"2022-09-01T08:50:26.493Z","dependency_job_id":null,"html_url":"https://github.com/espadrine/multilog","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/espadrine%2Fmultilog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/espadrine%2Fmultilog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/espadrine%2Fmultilog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/espadrine%2Fmultilog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/espadrine","download_url":"https://codeload.github.com/espadrine/multilog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254110452,"owners_count":22016392,"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-06T15:12:33.346Z","updated_at":"2025-05-14T09:17:23.265Z","avatar_url":"https://github.com/espadrine.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Multilog\n\n_a fun and collateral way to print logs_\n\nEach statement you log is associated to a tag, and some tags can be\nassociated to writable streams.\n\nYou can also file tags under other tags, so that all statements in a\nchild tag are printed to the parent tag's writable stream!\n\n\n## API\n\n```js\nvar log = require('multilog');\nlog('Curse your sudden but inevitable betrayal!', 'stderr');\n```\n\nYou get the following functions:\n\n- `log(statement, tag)` function prints `statement` in `tag` channel\n  (defaulting to the special \"stdout\" channel).\n- `log.pipe(parentTag, tag)` makes all `parentTag` statements be on the `tag`\n  channel.\n- `log.unpipe(parentTag, tag)` undoes the corresponding `pipe` operation.\n\nBy default, pipes flow into void.\n\nYou can connect them to [a writable stream][Stream]\nwith `log.pipe(tag, process.stdout)`.\n\nYou can also ask that their logs be retained with `log.retain(tag)`.\nYou can then read from them (and from all tags that feeds to them)\nthrough `log.read(tag)`, and flush the memory with `log.flush(tag)`.\n\nAdvanced use:\n\n- `log.tags(statement, tagList)` prints `statement` on multiple tags.\n- `log.stream(tag)` returns a duplex [Stream][] for a retained tag.\n\nThere are two special tags, `stdout` and `stderr`, which directly flush their\nstatements to the corresponding pipeline.\n\n[Stream]: http://nodejs.org/api/stream.html\n\n\n## Authorship\n\nThaddee Tyl © 2012-2014 released under\n\u003ca rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/3.0/\"\u003e\u003cimg\nalt=\"Creative Commons License\" style=\"border-width:0\"\nsrc=\"http://i.creativecommons.org/l/by-sa/3.0/80x15.png\" /\u003e\u003c/a\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fespadrine%2Fmultilog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fespadrine%2Fmultilog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fespadrine%2Fmultilog/lists"}