{"id":21482360,"url":"https://github.com/entwicklerstube/heroku-log","last_synced_at":"2025-07-15T13:32:43.902Z","repository":{"id":55080641,"uuid":"92172303","full_name":"entwicklerstube/heroku-log","owner":"entwicklerstube","description":"console.log wrapper for heroku-like logs","archived":false,"fork":false,"pushed_at":"2017-10-26T09:28:20.000Z","size":41,"stargazers_count":3,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-09T11:45:09.087Z","etag":null,"topics":["heroku","logdna","logging"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/heroku-log","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/entwicklerstube.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":"2017-05-23T12:50:14.000Z","updated_at":"2021-09-13T05:53:18.000Z","dependencies_parsed_at":"2022-08-14T11:21:01.610Z","dependency_job_id":null,"html_url":"https://github.com/entwicklerstube/heroku-log","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entwicklerstube%2Fheroku-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entwicklerstube%2Fheroku-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entwicklerstube%2Fheroku-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entwicklerstube%2Fheroku-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/entwicklerstube","download_url":"https://codeload.github.com/entwicklerstube/heroku-log/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226044514,"owners_count":17564909,"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":["heroku","logdna","logging"],"created_at":"2024-11-23T12:32:43.209Z","updated_at":"2024-11-23T12:32:43.874Z","avatar_url":"https://github.com/entwicklerstube.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Heroku-log\n\u003e Console.log wrapper for heroku-like logs\n\n[![Build Status](https://travis-ci.org/entwicklerstube/heroku-log.svg?branch=master)](https://travis-ci.org/entwicklerstube/heroku-log)\n\n### Install\n**yarn**\n```\nyarn add heroku-log\n```\n\n**npm**\n```\nnpm install heroku-log --save\n```\n\n### Available levels\n```js\nimport {\n  info,\n  debug,\n  error,\n  warn,\n  trace,\n  fatal\n} from 'heroku-log'\n```\n\n### Example\n```js\nimport herokuLog, { error } from 'heroku-log'\n\n// # On Heroku\nherokuLog.info('Server is starting')\n// 2017-05-24T08:58:42.857401+00:00 app[web.1] level=info message=\"Server is starting\"\n\nerror(new Error('I am an error '))\n// 2017-05-24T08:58:42.857401+00:00 app[web.1] level=error error=\"I am an error\"\n```\n![](https://mjz.io/IQwXU.png)\n\n### Tricks\nSometimes you don't want those logs e.g. when testing things, in this case you can pass a env variable in the command line and the module is muted\n```\n$ HEROKU_LOG=disable mocha test.js\n```\n\n### Timestamps\nIf the environment is not production `heroku-log` will add a simple time-mark at the beginning of each log, in production it will be hidden since Heroku adds a time block by itself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fentwicklerstube%2Fheroku-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fentwicklerstube%2Fheroku-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fentwicklerstube%2Fheroku-log/lists"}