{"id":15801578,"url":"https://github.com/garrettmac/cloudwatch-console-logger","last_synced_at":"2025-06-24T20:07:33.748Z","repository":{"id":57200846,"uuid":"131786664","full_name":"garrettmac/cloudwatch-console-logger","owner":"garrettmac","description":null,"archived":false,"fork":false,"pushed_at":"2018-05-15T22:16:06.000Z","size":89,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-04T06:14:51.442Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/garrettmac.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":"2018-05-02T02:20:06.000Z","updated_at":"2018-05-15T21:16:12.000Z","dependencies_parsed_at":"2022-09-16T15:12:01.170Z","dependency_job_id":null,"html_url":"https://github.com/garrettmac/cloudwatch-console-logger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/garrettmac/cloudwatch-console-logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garrettmac%2Fcloudwatch-console-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garrettmac%2Fcloudwatch-console-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garrettmac%2Fcloudwatch-console-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garrettmac%2Fcloudwatch-console-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/garrettmac","download_url":"https://codeload.github.com/garrettmac/cloudwatch-console-logger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garrettmac%2Fcloudwatch-console-logger/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261749216,"owners_count":23203990,"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-10-05T01:23:13.827Z","updated_at":"2025-06-24T20:07:33.722Z","avatar_url":"https://github.com/garrettmac.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloudwatch Console Logger\n\n[![Build Status](https://travis-ci.org/garrettmac/cloudwatch-console-logger.svg?branch=master)](https://travis-ci.org/garrettmac/cloudwatch-console-logger)\n[![Coverage Status](https://coveralls.io/repos/github/garrettmac/cloudwatch-console-logger/badge.svg?branch=master)](https://coveralls.io/github/garrettmac/cloudwatch-console-logger?branch=master)\n\n[![GitHub stars:](https://img.shields.io/github/stars/garrettmac/cloudwatch-console-logger.svg)](https://img.shields.io/github/stars/garrettmac/cloudwatch-console-logger.svg)\n[![GitHub license:](https://img.shields.io/github/license/garrettmac/cloudwatch-console-logger.svg)](https://img.shields.io/github/license/garrettmac/cloudwatch-console-logger.svg)\n[![Twitter:](https://img.shields.io/twitter/url/https/github.com/garrettmac/cloudwatch-console-logger.svg?style=social)](https://img.shields.io/twitter/url/https/github.com/garrettmac/cloudwatch-console-logger.svg?style=social)\n\n## Getting started\n\nThis creates a global `logger` variable with the option to overide the `console` in an aws enviornment to print objects rather than strings.\n\nThis is useful when using loggly.com\n\n```\nyarn add cloudwatch-console-logger\n\n```\n\n## Example Usage\n\n\n```jsx\nimport CloudwatchConsoleLogger from 'cloudwatch-console-logger'\n// initialize what you want to be added to each console.* or logger.* statment\n CloudwatchConsoleLogger.init({\n    awsLambdaFunctionName: process.env.AWS_LAMBDA_FUNCTION_NAME,\n    awsRegion: process.env.AWS_REGION,\n    timeZone: process.env.TZ\n  });\n\n\n\n  logger.info('Hello world');\n  \n  /* \nprints on server side only\n   {\n       // initial data\n    awsLambdaFunctionName: \"myLambdaFunction\",\n    awsRegion: \"some region\",\n    timeZone: \"some time zone\",\n    // more data\n    message: \"Hello world\"\n   }\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarrettmac%2Fcloudwatch-console-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgarrettmac%2Fcloudwatch-console-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarrettmac%2Fcloudwatch-console-logger/lists"}