{"id":19725090,"url":"https://github.com/ran-2012/winston-wrapper","last_synced_at":"2025-10-08T05:10:14.482Z","repository":{"id":40931829,"uuid":"275520853","full_name":"ran-2012/winston-wrapper","owner":"ran-2012","description":"A simple winston wrapper template.","archived":false,"fork":false,"pushed_at":"2023-07-14T13:08:32.000Z","size":30,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-10T16:53:57.545Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ran-2012.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-06-28T06:20:09.000Z","updated_at":"2022-04-09T08:10:16.000Z","dependencies_parsed_at":"2024-11-11T23:29:47.082Z","dependency_job_id":"3142fed5-df7d-4f0a-abde-51d5c6c367d6","html_url":"https://github.com/ran-2012/winston-wrapper","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/ran-2012%2Fwinston-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ran-2012%2Fwinston-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ran-2012%2Fwinston-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ran-2012%2Fwinston-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ran-2012","download_url":"https://codeload.github.com/ran-2012/winston-wrapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241045802,"owners_count":19899728,"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":[],"created_at":"2024-11-11T23:28:07.666Z","updated_at":"2025-10-08T05:10:09.426Z","avatar_url":"https://github.com/ran-2012.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# winston-wrapper\n\nThis is a \"copy-and-use\" sample to make you using `winston` easier.\n\n## How to use?\n\n- Add related packages to your package.json:\n  \n  Just copy this and append to your `dependencied` of `package.json`.\n  \n  ```text\n        \"@types/node\": \"^14.0.14\",\n        \"@types/winston\": \"^2.4.4\",\n        \"typescript\": \"^3.9.5\",\n        \"winston\": \"^3.3.3\",\n        \"winston-daily-rotate-file\": \"^4.5.0\"\n  ```\n\n- If you are using TypeScript\n\n  Great! just copy `log.ts` and `config.ts` to your project's directory.\n  Here is the sample code:\n  \n  ```typescript\n  import {getLogger} from './log';\n  \n  const log = getLogger('test');\n  log.warn(\"this is a warning.\");\n  log.error(new Error(\"Here is a error.\"));\n  log.info(\"Time to go.\", \"It's now\", 12, \"a.m.\");\n  ```\n\n- If you are using JavaScript\n\n  Compiled js files can be found in `./build`, you can copy these to .js files.\n  But things may go wrong, I didn't test if it works using `require`.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fran-2012%2Fwinston-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fran-2012%2Fwinston-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fran-2012%2Fwinston-wrapper/lists"}