{"id":25961688,"url":"https://github.com/ttab/bog","last_synced_at":"2026-05-26T23:31:26.843Z","repository":{"id":66581831,"uuid":"10455118","full_name":"ttab/bog","owner":"ttab","description":"Thinnest possible logging","archived":false,"fork":false,"pushed_at":"2019-03-01T07:43:24.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-10-26T12:53:16.979Z","etag":null,"topics":[],"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/ttab.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-06-03T13:32:59.000Z","updated_at":"2019-03-01T07:43:26.000Z","dependencies_parsed_at":"2023-06-11T13:45:43.886Z","dependency_job_id":null,"html_url":"https://github.com/ttab/bog","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ttab/bog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttab%2Fbog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttab%2Fbog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttab%2Fbog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttab%2Fbog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ttab","download_url":"https://codeload.github.com/ttab/bog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttab%2Fbog/sbom","scorecard":{"id":901349,"data":{"date":"2025-08-11","repo":{"name":"github.com/ttab/bog","commit":"410212f3070342c3554fff725eaeea2abd3d7788"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 2/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T15:41:18.468Z","repository_id":66581831,"created_at":"2025-08-24T15:41:18.468Z","updated_at":"2025-08-24T15:41:18.468Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33543973,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"ssl_error","status_checked_at":"2026-05-26T15:22:15.568Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2025-03-04T19:41:00.193Z","updated_at":"2026-05-26T23:31:26.829Z","avatar_url":"https://github.com/ttab.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Simplest Possible Logging\n=========================\n\n`console.log` and `console.error` is really enough and the world has\ntoo many log frameworks. This library should not be used, but if you\ndecide to anyway, you get the following:\n\n* Timestamped log lines in local time zone.\n* Log levels: `DEBUG`, `INFO`, `WARN`, `ERROR`\n* Possible to redirect.\n* Reasonable defaults.\n* Singleton\n\n## Defaults\n\nThe default log level is `INFO`. Debug messages are not shown. Info,\nwarnings and errors are.\n\nBy default `DEBUG` and `INFO` go to `console.log` (and thus `stdout`),\nwhile `WARN` and `ERROR` go to `console.error` (thus `stderr`).\n\n*** 1.0.0 - changed to local time zone. Earlier versions times were always in Zulu.\n\nThe default time format is\n[ISO8601](http://en.wikipedia.org/wiki/ISO_8601) in the local time zone.\n\n## Install\n```\nnpm install bog\n```\n\n## Example\n\n```javascript\nvar log = require('bog');\n\nlog.info('Something wonderful has happened Your AMIGA is alive !!!');\n```\n\nWould produce:\n\n```\n2013-06-13 19:05:35.482 INFO Something wonderful has happened Your AMIGA is alive !!!\n```\n\n## API\n\n### log.debug(args...)\n\nSame as `log.info`.\n\n### log.info(args...)\n\nOutputs logging at the `INFO` level. `args` is one or many arguments\nwhich is passed to the output function.\n\n#### Example\n\n```javascript\nlog.info('and, even', 'better...');\n```\n\nOutputs\n\n```\n2013-06-13 19:05:35.482 INFO and even better...\n```\n\nN.b. The above is conceptually the same as\n\n```javascript\nconsole.log((new Date()).toISOString(), 'INFO', 'and, even', 'better...');\n```\n\n### log.warn(args...)\n\nSame as `log.info`, but to `stderr`.\n\n### log.error(args...)\n\nSame as `log.info`, but to `stderr`.\n\n### log.level(level)\n\nSets the lowest reported log level, for example `warn` would enable\n`warn` and `error`, and disable `debug` and `info`.\n\n#### Example:\n\n```javascript\nlog.level('warn');\n```\n\n### log.redirect(out, err)\n\n`out` is the output *function* for `DEBUG` and `INFO` and `err` is the\noutput *function* for `WARN` and `ERROR`. `null` is appropriate to\nturn off output.\n\n#### Example:\n\n```javascript\nlog.redirect(null, null); // silences all logging\n...\nlog.redirect(console.log, console.error); // reinstates defaults\n```\n\n### log.callback()\n\nSet a callback function for each log message. The callback \nwill receive an object like this:\n\n```javascript\n{\n  \"timestamp\": 1462947947643,\n  \"datetime\" : \"2016-05-11 8:25:47\",\n  \"level\"    : \"INFO\",\n  \"args\"     : [\"This is the\", \"arguments array\"]\n}\n```\n\n### log.config()\n\nSpills the beans of the internal config. Can be used to alter the formatting.\n\n#### Example (deprecated)\n\nThis formatting is deprecated, do not use.\n\n```javascript\nlog.config().format = function(level, args) {\n    if (level === 'info') {\n        args.unshift('Prepended');\n        args.push('Appended');\n    }\n    return args;\n};\n```\n\n### Enable ISO8601 time designator 'T' and timezone\n\n*** Since 1.0.0\n\nIt's possible to turn on the time designator and timezone.\n\n```javascript\nlog.config().includeTimeDesignator = true;\nlog.config().includeTimeZone = true;\n\nlog.info('Something wonderful has happened Your AMIGA is alive !!!');\n```\n\nIf machine timezone is India this would produce:\n\n```\n2013-06-13T19:05:35.482+0530 INFO Something wonderful has happened Your AMIGA is alive !!!\n```\n\nNotice that zulu (GMT) time is denoted by a 'Z'.\n\n## License\n\nMIT License (MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttab%2Fbog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fttab%2Fbog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttab%2Fbog/lists"}