{"id":16490709,"url":"https://github.com/awinterman/yeslog","last_synced_at":"2026-06-03T20:31:19.869Z","repository":{"id":25000943,"uuid":"28419912","full_name":"AWinterman/yeslog","owner":"AWinterman","description":"i wrote a logging thing. probably not better than any other logging thing, but i like it.","archived":false,"fork":false,"pushed_at":"2015-12-03T19:10:30.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T08:48:19.327Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AWinterman.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":"2014-12-23T21:13:31.000Z","updated_at":"2014-12-23T21:15:34.000Z","dependencies_parsed_at":"2022-07-24T03:46:27.041Z","dependency_job_id":null,"html_url":"https://github.com/AWinterman/yeslog","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/AWinterman%2Fyeslog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AWinterman%2Fyeslog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AWinterman%2Fyeslog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AWinterman%2Fyeslog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AWinterman","download_url":"https://codeload.github.com/AWinterman/yeslog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241325868,"owners_count":19944450,"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-11T13:48:49.380Z","updated_at":"2026-06-03T20:31:19.840Z","avatar_url":"https://github.com/AWinterman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yeslog\n\nyes, I wrote another logging module.\n\nIt's a super simple implementation/api.\n\n```js\nvar Log = require('yeslog')\nvar path = require('path')\n\nvar filename = path.join(__dirname, __filename)\n\nvar log = new Log('INFO', filename, process.stderr)\n\nlog.debug('yeah, so what') // nothing written\n\n// these all get logged:\nlog.info('interesting stuff')\nlog.warn('this is the kinda bad?')\nlog.error('stop!')\n```\n\n## API\n\n```\nvar Log = require('yeslog')\n\nvar log = new Log(level, name, stream)\n```\n\n### Arguments\n- `level`: one of the following strings:\n\n\n  - `'TRACE'`\n  - `'DEBUG'`\n  - `'INFO'`\n  - `'WARN'`\n  - `'ERROR'`\n  - `'FATAL'`\n\n  Determines which messages get written to the stream.\n\n- `name`: A string to include which describes the file originating the error.\n\n- `stream`: A writable stream to which to write messages.\n\n\n### Methods\n\n- `log` is an object with methods:\n\n  - `trace`\n  - `debug`\n  - `info`\n  - `warn`\n  - `error`\n  - `fatal`\n\n  Each of which expects a string to be passed to `util.format` and writes it to\n  the supplied stream.\n\n  Each output line has the format:\n\n  ```\n  LEVEL (isodate) [name]: MESSAGE\n  ```\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawinterman%2Fyeslog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fawinterman%2Fyeslog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawinterman%2Fyeslog/lists"}