{"id":15857885,"url":"https://github.com/fabioricali/iog","last_synced_at":"2025-04-01T19:44:06.864Z","repository":{"id":57275808,"uuid":"104495349","full_name":"fabioricali/iog","owner":"fabioricali","description":"Save your logs on disk, so simply.","archived":false,"fork":false,"pushed_at":"2020-09-04T16:43:48.000Z","size":82,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-07T18:50:39.232Z","etag":null,"topics":["catch","error","log","logger","try-catch"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fabioricali.png","metadata":{"files":{"readme":"README.hbs","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-22T16:24:16.000Z","updated_at":"2020-09-04T16:42:25.000Z","dependencies_parsed_at":"2022-09-15T19:13:01.752Z","dependency_job_id":null,"html_url":"https://github.com/fabioricali/iog","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2Fiog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2Fiog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2Fiog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2Fiog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabioricali","download_url":"https://codeload.github.com/fabioricali/iog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246704058,"owners_count":20820519,"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":["catch","error","log","logger","try-catch"],"created_at":"2024-10-05T20:42:37.535Z","updated_at":"2025-04-01T19:44:06.839Z","avatar_url":"https://github.com/fabioricali.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iog\nSave your logs on disk, so simply.\n\u003cbr/\u003e\u003cbr/\u003e\n\u003ca href=\"https://travis-ci.org/fabioricali/iog\" target=\"_blank\"\u003e\u003cimg src=\"https://travis-ci.org/fabioricali/iog.svg?branch=master\" title=\"Build Status\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://opensource.org/licenses/MIT\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" title=\"License: MIT\"/\u003e\u003c/a\u003e\n\n## Installation\n```\nnpm install --save iog\n```\n\n## Example\n```javascript\nconst Iog = require('iog');\n\nconst logger = new Iog('my-module-name', {\n    onLog(body, type) {\n        console.log(body, type)\n    }\n});\n\nlogger.write('my log info');\nlogger.write({\n    also: {\n        you: 'want, for example an object'\n    }\n});\n```\n\n## Log format\n\nthis produces\n```javascript\nlogger.write('my log info');\n```\nthis\n```\nCONTEXT: my-module-name\nDATE: 2018-03-03 20:14:12:367\nTYPE: log\nBODY:\n\nmy log info\n\n---------------------------------------------------------------------------------------\n```\n\nthis produces\n```javascript\n\nlet obj = {\n    error: \"undefine is not defined\",\n    other: {\n        meta: \"a meta\"\n    }\n};\n\nlogger.write(obj);\n```\nthis\n```\nCONTEXT: my-module-name\nDATE: 2018-03-03 20:14:12:367\nTYPE: log\nBODY:\n\n{\n    \"error\": \"undefine is not defined\",\n    \"other\": {\n        \"meta\": \"a meta\"\n    }\n}\n\n---------------------------------------------------------------------------------------\n```\n\n## API\n\n{{\u003emain}}\n\n## License\nIog is open-sourced software licensed under the \u003ca target=\"_blank\" href=\"http://opensource.org/licenses/MIT\"\u003eMIT license\u003c/a\u003e\n\n## Author\n\u003ca target=\"_blank\" href=\"http://rica.li\"\u003eFabio Ricali\u003c/a\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabioricali%2Fiog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabioricali%2Fiog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabioricali%2Fiog/lists"}