{"id":21681922,"url":"https://github.com/czbone/express-log-sample","last_synced_at":"2026-04-11T00:38:45.880Z","repository":{"id":201100861,"uuid":"697615353","full_name":"czbone/express-log-sample","owner":"czbone","description":"Node.js logging sample","archived":false,"fork":false,"pushed_at":"2023-12-08T05:35:05.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-25T11:26:22.000Z","etag":null,"topics":["express","logging","mongodb","mongoose","nodejs","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/czbone.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":"2023-09-28T05:46:36.000Z","updated_at":"2023-10-29T01:33:42.000Z","dependencies_parsed_at":"2023-10-29T03:21:49.891Z","dependency_job_id":"531121fe-c22e-45ff-8d41-55bb087ffcc4","html_url":"https://github.com/czbone/express-log-sample","commit_stats":null,"previous_names":["czbone/express-log-sample"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czbone%2Fexpress-log-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czbone%2Fexpress-log-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czbone%2Fexpress-log-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czbone%2Fexpress-log-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/czbone","download_url":"https://codeload.github.com/czbone/express-log-sample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244600671,"owners_count":20479304,"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":["express","logging","mongodb","mongoose","nodejs","typescript","winston"],"created_at":"2024-11-25T15:32:17.810Z","updated_at":"2025-12-31T00:05:44.105Z","avatar_url":"https://github.com/czbone.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nodejs logging example\n\nMultiple purpose logging example on Nodejs express system by customizing winston.\n\n## Features\n\n- Typescript base\n- using Winston module\n- MongoDB error logging\n- logging to console and file(json)\n- logging HTTP request context\n　\n## Environment\n\n- Node v18.0 above\n- MongoDB v6.0\n\n## How to use\n\n1. Install module\n\n```bash\n# yarn\nyarn install\n\n# npm\nnpm install\n```\n\n2. Setup\n\nEdit `.env` file:\n\n```\nMONGO_URL=mongodb://localhost:27017/sampleDB\n```\n\n3. Launch server\n\nIf using VSCode, show the `Run and Debug` view and launch `Start server` from `Debugging start` menu.\nIf using command, input below.\n\n```bash\n# yarn\nyarn dev\n\n# npm\nnpm run dev\n```\n\nStart the development server on http://localhost:3000\nwith logging files in `logs` directory.\n\n## Production build\n\n1. Edit `.env` file for production:\n\n```\nNODE_ENV=production\n```\n\n2. Build application:\n\n```bash\n# yarn\nyarn build\n\n# npm\nnpm run build\n```\n\n3. Launch application:\n\n```bash\n# yarn\nyarn start\n\n# npm\nnpm start\n```\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczbone%2Fexpress-log-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fczbone%2Fexpress-log-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczbone%2Fexpress-log-sample/lists"}