{"id":17454089,"url":"https://github.com/rcherny/log-tool","last_synced_at":"2025-03-28T04:46:51.241Z","repository":{"id":146963832,"uuid":"265010393","full_name":"rcherny/log-tool","owner":"rcherny","description":"Simple console logging tool for JavaScript / Browser.","archived":false,"fork":false,"pushed_at":"2020-10-03T18:47:23.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T05:43:54.637Z","etag":null,"topics":["browser","debugging","javascript","logger","logging"],"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/rcherny.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":"2020-05-18T17:22:04.000Z","updated_at":"2020-10-03T18:47:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"50a04db4-b4da-4b7f-8b65-ae37f835aade","html_url":"https://github.com/rcherny/log-tool","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/rcherny%2Flog-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcherny%2Flog-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcherny%2Flog-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcherny%2Flog-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rcherny","download_url":"https://codeload.github.com/rcherny/log-tool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245972669,"owners_count":20702721,"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":["browser","debugging","javascript","logger","logging"],"created_at":"2024-10-18T01:04:15.435Z","updated_at":"2025-03-28T04:46:51.207Z","avatar_url":"https://github.com/rcherny.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Log Tool\n\nExceptionally minimal browser console log tool.\n\n## Features\n\n- tiny footprint\n- preserve line numbers in console\n- enable/disable loggers and keep them in the code\n- No dependencies\n\n# Example\n\nTo run the example, run a static server in this root folder, and load [the eample page](example/index.html) in a browser.\n\n## Using\n\nSimply import the module and run with it.\n\n```\nimport { logTool } from '@rmc2/log-tool';\n\n// Create a logger:\nconst loggerA = logTool(true, {\n    namespace: 'Logging Module A:'\n})\n\nloggerA('log any value as necessary'); // Logging Module A: log any value as necessary\n\n// Disabled:\nconst loggerB = logTool(false, {\n    namespace: 'Logging Module B:'\n})\nloggerB('This has no output'); // Disabled, no output.\n\n// return to first logger\nloggerA('Logging more things.'); // Logging Module A: Logging more things.\n\n// Simple defaults\nconst loggerC = logTool();\nloggerC('Logging!') // Logging!\n```\n\n## Todo\n\n- [ ] Change so you do no have to pass a method in to use a different method\n- [ ] Use session storage for global overrides\n- [ ] Actual unit tests\n- [ ] Less verbose API \n- [ ] Push to npm (...)\n\n## Other Logging Tools\n\nThere are much fancier tools. Really.\n\n- [Log Level](https://github.com/pimterry/loglevel \"GitHub - pimterry/loglevel: Minimal lightweight logging for JavaScript, adding reliable log level methods to wrap any available console.log methods\")\n- [Min Log](https://github.com/chunpu/min-log \"GitHub - chunpu/min-log: Better Logger with Custom Level and Outputer Taking over the original console\")\n\n## License\n\nSee LICENSE file.\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frcherny%2Flog-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frcherny%2Flog-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frcherny%2Flog-tool/lists"}