{"id":18415113,"url":"https://github.com/elonehoo/log","last_synced_at":"2025-04-07T12:31:37.637Z","repository":{"id":57677299,"uuid":"489661963","full_name":"elonehoo/log","owner":"elonehoo","description":"Keep the log output as simple as possible","archived":false,"fork":false,"pushed_at":"2024-04-15T04:08:56.000Z","size":639,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-17T06:53:33.200Z","etag":null,"topics":["console","log","typescript","vite"],"latest_commit_sha":null,"homepage":"https://log.elonehoo.xyz","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/elonehoo.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},"funding":{"github":"elonehoo"}},"created_at":"2022-05-07T12:02:46.000Z","updated_at":"2024-04-19T23:35:30.622Z","dependencies_parsed_at":"2023-10-16T16:57:38.379Z","dependency_job_id":"edd674be-0606-403a-b0a3-f6a6c6d4dc34","html_url":"https://github.com/elonehoo/log","commit_stats":{"total_commits":40,"total_committers":2,"mean_commits":20.0,"dds":"0.30000000000000004","last_synced_commit":"e92551f6d11806a200091f36960982b0f3452e27"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elonehoo%2Flog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elonehoo%2Flog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elonehoo%2Flog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elonehoo%2Flog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elonehoo","download_url":"https://codeload.github.com/elonehoo/log/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247653074,"owners_count":20973748,"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","log","typescript","vite"],"created_at":"2024-11-06T03:53:11.666Z","updated_at":"2025-04-07T12:31:37.276Z","avatar_url":"https://github.com/elonehoo.png","language":"TypeScript","readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"./public/logo.svg\" width=\"100px\" height=\"100px\" /\u003e\n\u003c/div\u003e\n\n\u003ch1 align=\"center\"\u003e@elonehoo/log\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@elonehoo/log\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/@elonehoo/log?color=81A2BE\u0026label=\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Example\n\n```typescript\nimport log from '@elonehoo/log'\n\n// levels: 1 - fatal, 2 - info, 3 - error, 4 - warn, 5 - debug, 6 - trace (default is 2)\nlog.setLevel(6) // the larger the number, the higher the verbosity\n\n// simple logging\nlog.trace('trace message')\nlog.debug('debug message')\nlog.info('info message')\nlog.error('error message')\nlog.warn('warn message')\nlog.fatal('fatal message')\n\n// passing params\nlog.debug('debug message with array:', [1, 2, 3, 4], { a: 1, b: 2 })\nlog.debug('debug message with object:', { a: 1, b: 2 })\nlog.debug('debug message with number:', Math.random())\n\n// using scopes\nconst scopedLog = log.scope('scope')\nscopedLog.debug('debug message')\n```\n\n## Screenshots\n\n![demo.png](./public/img/demo.png)\n","funding_links":["https://github.com/sponsors/elonehoo"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felonehoo%2Flog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felonehoo%2Flog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felonehoo%2Flog/lists"}