{"id":18700241,"url":"https://github.com/olian04/better-logging","last_synced_at":"2025-04-05T12:06:58.467Z","repository":{"id":37664539,"uuid":"139819861","full_name":"Olian04/better-logging","owner":"Olian04","description":"better-logging is a drop in replacement for the default logging methods of node.js ","archived":false,"fork":false,"pushed_at":"2024-06-16T11:12:47.000Z","size":657,"stargazers_count":173,"open_issues_count":5,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T11:07:32.737Z","etag":null,"topics":["console","javascript","logging","logging-library","npm-package","typescript"],"latest_commit_sha":null,"homepage":"https://olian04.gitbook.io/better-logging/","language":"TypeScript","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/Olian04.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["Olian04"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":[]}},"created_at":"2018-07-05T08:34:51.000Z","updated_at":"2025-02-26T12:28:08.000Z","dependencies_parsed_at":"2024-06-18T15:37:24.619Z","dependency_job_id":"4c1bb4ea-260e-4e2e-a96c-fc0f24d7311f","html_url":"https://github.com/Olian04/better-logging","commit_stats":{"total_commits":222,"total_committers":6,"mean_commits":37.0,"dds":"0.14864864864864868","last_synced_commit":"7770f44dfe4cf32064cae79c9229c9e8d3f705e9"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olian04%2Fbetter-logging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olian04%2Fbetter-logging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olian04%2Fbetter-logging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olian04%2Fbetter-logging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Olian04","download_url":"https://codeload.github.com/Olian04/better-logging/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247332606,"owners_count":20921853,"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":["console","javascript","logging","logging-library","npm-package","typescript"],"created_at":"2024-11-07T11:36:29.912Z","updated_at":"2025-04-05T12:06:58.442Z","avatar_url":"https://github.com/Olian04.png","language":"TypeScript","funding_links":["https://github.com/sponsors/Olian04"],"categories":[],"sub_categories":[],"readme":"[![NPM Version](https://img.shields.io/npm/v/better-logging.svg)](https://www.npmjs.com/package/better-logging)\n![Supported Types](https://img.shields.io/npm/types/better-logging.svg)\n[![NPM Downloads](https://img.shields.io/npm/dt/better-logging.svg)](https://www.npmjs.com/package/better-logging)\n[![Build Status Master](https://img.shields.io/github/workflow/status/olian04/better-logging/Node.js%20CI/master?label=build%20%28master%29)](https://github.com/Olian04/better-logging/actions?query=workflow%3A%22Node.js+CI%22+branch%3Amaster+event%3Apush)\n[![Build Status Dev](https://img.shields.io/github/workflow/status/olian04/better-logging/Node.js%20CI/dev?label=build%20%28dev%29)](https://github.com/Olian04/better-logging/actions?query=workflow%3A%22Node.js+CI%22+branch%3Adev+event%3Apush)\n![LICENSE](https://img.shields.io/npm/l/better-logging.svg)\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FOlian04%2Fbetter-logging.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FOlian04%2Fbetter-logging?ref=badge_shield)\n\n# better-logging\n\n![demo output of better-logging in action](images/output.png)\n\nOut of the box Javascript comes five different standardized logging types. However, as it stands only browsers are taking advantage of these different methods of logging. `better-logging` aims to improve the default logging experience of any node application, it is designed to be a drop in replacement for the default logging methods. \u003cbr\u003e\nSince `better-logging` only decorates the default logging methods you won't lose any functionality provided by other tooling. `better-logging` is not meant to be the be all and end all of node.js logging. It is just supposed to increase the usefulness of the default logging methods.\n\n**Install:** [`npm i better-logging`](https://www.npmjs.com/package/better-logging)\n\n---\n\n```js\n// Default in node.js\nconsole.debug('foo'); //  foo\nconsole.log('foo'); //    foo\nconsole.info('foo'); //   foo\nconsole.warn('foo'); //   foo\nconsole.error('foo'); //  foo\n\n// With better-logging\nrequire('better-logging')(console);\n\nconsole.debug('foo'); //  [11:46:35.294] [debug] foo\nconsole.log('foo'); //    [11:46:35.296] [log] foo\nconsole.info('foo'); //   [11:46:35.296] [info] foo\nconsole.warn('foo'); //   [11:46:35.298] [warn] foo\nconsole.error('foo'); //  [11:46:35.298] [error] foo\nconsole.line('foo'); //   foo\n```\n\n## Documentation\n\nhttps://olian04.gitbook.io/better-logging/\n\n## License\n\n_See [LICENSE](./LICENSE)_\n\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FOlian04%2Fbetter-logging.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2FOlian04%2Fbetter-logging?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folian04%2Fbetter-logging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folian04%2Fbetter-logging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folian04%2Fbetter-logging/lists"}