{"id":50373245,"url":"https://github.com/andreas-timm/logger-ts","last_synced_at":"2026-05-30T08:04:16.934Z","repository":{"id":354970208,"uuid":"1223644653","full_name":"andreas-timm/logger-ts","owner":"andreas-timm","description":"Small Bun-first logging utilities built on top of winston","archived":false,"fork":false,"pushed_at":"2026-05-01T07:00:25.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-01T08:30:41.680Z","etag":null,"topics":["bun","logger","logging","typescript","winston"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andreas-timm.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-28T14:15:50.000Z","updated_at":"2026-05-01T06:59:07.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/andreas-timm/logger-ts","commit_stats":null,"previous_names":["andreas-timm/logger-ts"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/andreas-timm/logger-ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreas-timm%2Flogger-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreas-timm%2Flogger-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreas-timm%2Flogger-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreas-timm%2Flogger-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreas-timm","download_url":"https://codeload.github.com/andreas-timm/logger-ts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreas-timm%2Flogger-ts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33684419,"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":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bun","logger","logging","typescript","winston"],"created_at":"2026-05-30T08:04:13.240Z","updated_at":"2026-05-30T08:04:16.920Z","avatar_url":"https://github.com/andreas-timm.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @andreas-timm/logger\n\nSmall Bun-first logging utilities built on top of `winston`.\n\n## Features\n\n- Create a configured `winston` logger with console output.\n- Add a synchronous file transport by passing an output path.\n- Truncate an output file on logger creation with `flag: \"w\"`.\n- Prefix debug messages consistently while keeping the API small.\n\n## Install\n\n```sh\nbun add @andreas-timm/logger\n```\n\n## Usage\n\n```ts\nimport { getLogger } from \"@andreas-timm/logger\";\n\nconst logger = getLogger();\n\nlogger.info(\"Application started\");\nlogger.error(\"File not found\");\n```\n\nTo write log lines to a file as well as the console:\n\n```ts\nimport { getLogger } from \"@andreas-timm/logger\";\n\nconst logger = getLogger({\n    flag: \"w\",\n    output: \"tmp/app.log\",\n});\n\nlogger.info(\"Written to console and file\");\n```\n\nPass `file: false` to keep the same options object shape while disabling file output.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreas-timm%2Flogger-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreas-timm%2Flogger-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreas-timm%2Flogger-ts/lists"}