{"id":16884386,"url":"https://github.com/yerkopalma/tiny-log","last_synced_at":"2026-05-11T09:26:23.553Z","repository":{"id":72770533,"uuid":"84864458","full_name":"YerkoPalma/tiny-log","owner":"YerkoPalma","description":"Simple and small logger for node and the browser.","archived":false,"fork":false,"pushed_at":"2017-03-16T02:14:53.000Z","size":20,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-25T07:11:20.276Z","etag":null,"topics":["browser","log","logging","node"],"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/YerkoPalma.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":"2017-03-13T19:07:50.000Z","updated_at":"2017-03-13T21:21:08.000Z","dependencies_parsed_at":"2023-05-12T00:45:35.580Z","dependency_job_id":null,"html_url":"https://github.com/YerkoPalma/tiny-log","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/YerkoPalma%2Ftiny-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YerkoPalma%2Ftiny-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YerkoPalma%2Ftiny-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YerkoPalma%2Ftiny-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YerkoPalma","download_url":"https://codeload.github.com/YerkoPalma/tiny-log/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244557201,"owners_count":20471777,"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":["browser","log","logging","node"],"created_at":"2024-10-13T16:27:44.584Z","updated_at":"2026-05-11T09:26:18.513Z","avatar_url":"https://github.com/YerkoPalma.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tiny-log [![npm version](https://img.shields.io/npm/v/@yerkopalma/tiny-log.svg?style=flat-square)](https://www.npmjs.com/package/@yerkopalma/tiny-log) \n[![Build Status](https://img.shields.io/travis/YerkoPalma/tiny-log/master.svg?style=flat-square)](https://travis-ci.org/YerkoPalma/tiny-log) [![test coverage](https://img.shields.io/codecov/c/github/yerkopalma/tiny-log/master.svg?style=flat-square)](https://codecov.io/github/yerkopalma/tiny-log) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n\u003e Simple and small logger for node and the browser.\n\n![](screenshot.png)\n\n# Install \n\n```bash\n$ npm install --save-dev @yerkopalma/tiny-log\n```\n\n# Usage\n\n```js\nvar Log = require('tiny-log')\n\n// in production, all log messagges lower than warning will be omited\nlog = process.env.NODE_ENV === 'production'\n            ? Log('warn')\n            : Log('debug')\n\nlog.debug('debug')\nlog.warn('debug')\nlog.error('debug')\nlog.fatal('Oh boy...')\n\nlog.dump({\n  hello: 'world'\n})\n```\n\nEvery log message, except dump messages, is composed by a timestamp, a context (the name of the caller function) and the formated message. If no context is provided (anonymous or undefined function) `'unknown'` is printed as context.\nDump messages, are some kinf of yaml representation of objects.\n\n# license\n\n[MIT](/license) © [Yerko Palma](https://github.com/YerkoPalma).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyerkopalma%2Ftiny-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyerkopalma%2Ftiny-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyerkopalma%2Ftiny-log/lists"}