{"id":19586538,"url":"https://github.com/glebbash/winston-cloudrun","last_synced_at":"2025-04-27T12:31:20.819Z","repository":{"id":48981646,"uuid":"377794630","full_name":"glebbash/winston-cloudrun","owner":"glebbash","description":"Winston Cloud Run config","archived":false,"fork":false,"pushed_at":"2022-10-28T09:17:57.000Z","size":522,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-21T01:32:09.291Z","etag":null,"topics":["hacktoberfest","logging"],"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/glebbash.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}},"created_at":"2021-06-17T10:40:42.000Z","updated_at":"2022-12-14T23:44:00.000Z","dependencies_parsed_at":"2022-09-02T00:42:40.793Z","dependency_job_id":null,"html_url":"https://github.com/glebbash/winston-cloudrun","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glebbash%2Fwinston-cloudrun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glebbash%2Fwinston-cloudrun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glebbash%2Fwinston-cloudrun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glebbash%2Fwinston-cloudrun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glebbash","download_url":"https://codeload.github.com/glebbash/winston-cloudrun/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224069488,"owners_count":17250456,"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":["hacktoberfest","logging"],"created_at":"2024-11-11T08:00:18.980Z","updated_at":"2024-11-11T08:00:41.232Z","avatar_url":"https://github.com/glebbash.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# winston-cloudrun\n\n[![Deploy](https://github.com/glebbash/winston-cloudrun/workflows/build/badge.svg)](https://github.com/glebbash/winston-cloudrun/actions)\n[![Coverage Status](https://coveralls.io/repos/github/glebbash/winston-cloudrun/badge.svg?branch=master)](https://coveralls.io/github/glebbash/winston-cloudrun?branch=master)\n\nWinston Cloud Run config for logging to stdout in json format with correctly specified `time` and `severity`.\n\nInstallation:\n\n```sh\nnpm i winston-cloudrun\n```\n\nUsage:\n\n```ts\nimport { createLogger } from 'winston';\nimport { getWinstonCloudRunConfig } from 'winston-cloudrun';\n\nconst logger = createLogger(getWinstonCloudRunConfig({\n  production: true\n}));\n\nlogger.info('Processing important task...', { data: 'abc' });\n/*\n{ \"severity\": \"INFO\", message: \"Processing important task...\", data: \"abc\", time: \"2021-06-17T10:39:00.576Z\" }\n*/\n```\n\nOr use only format:\n\n```ts\n...\nimport { getCloudLoggingFormat } from 'winston-cloudrun';\n\nconst logger = createLogger({\n  format: getCloudLoggingFormat(),\n  ...\n});\n```\n\nBootstrapped with: [create-ts-lib-gh](https://github.com/glebbash/create-ts-lib-gh)\n\nThis project is [Mit Licensed](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglebbash%2Fwinston-cloudrun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglebbash%2Fwinston-cloudrun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglebbash%2Fwinston-cloudrun/lists"}