{"id":21717263,"url":"https://github.com/jormaechea/lllog","last_synced_at":"2026-05-08T15:49:24.496Z","repository":{"id":35047250,"uuid":"200418524","full_name":"jormaechea/lllog","owner":"jormaechea","description":"A minimal zero-dependency logger.","archived":false,"fork":false,"pushed_at":"2022-12-30T18:21:11.000Z","size":305,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T22:48:30.441Z","etag":null,"topics":["log","logger","logging","logs","minimal","node","nodejs","zero-dependency"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/lllog","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/jormaechea.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2019-08-03T20:33:13.000Z","updated_at":"2019-09-08T00:26:05.000Z","dependencies_parsed_at":"2023-01-15T12:43:03.859Z","dependency_job_id":null,"html_url":"https://github.com/jormaechea/lllog","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/jormaechea%2Flllog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jormaechea%2Flllog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jormaechea%2Flllog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jormaechea%2Flllog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jormaechea","download_url":"https://codeload.github.com/jormaechea/lllog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244682053,"owners_count":20492894,"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":["log","logger","logging","logs","minimal","node","nodejs","zero-dependency"],"created_at":"2024-11-26T01:15:51.439Z","updated_at":"2026-05-08T15:49:19.465Z","avatar_url":"https://github.com/jormaechea.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LLLog\n\n[![npm version](https://badgen.net/npm/v/lllog)](https://www.npmjs.com/package/lllog)\n[![Install size](https://badgen.net/packagephobia/install/lllog)](https://www.npmjs.com/package/lllog)\n[![Build Status](https://travis-ci.org/jormaechea/lllog.svg?branch=master)](https://travis-ci.org/jormaechea/lllog)\n[![Coverage Status](https://coveralls.io/repos/github/jormaechea/lllog/badge.svg?branch=master)](https://coveralls.io/github/jormaechea/lllog?branch=master)\n\nA minimal **zero-dependency** logger.\n\n## Install\n\n`npm i lllog`\n\n## Usage\n\nHere's an simple example of how to use the package:\n\n```js\nconst logger = require('lllog')();\n\nlogger.info('LLLog is great');\n````\n\nYou can customize the log level when creating your logger, or on runtime:\n\n```js\nconst logger = require('lllog')('error');\n\nlogger.info('This is not gonna be logged');\n\nlogger.error('But this will!');\nlogger.fatal('Also this one');\n\nlogger.setMinLevel('info');\nlogger.info('Now this is beeing logged too');\n```\n\nYou can even silence every log using the `none` log level\n\nThere are 5 log levels which you can use:\n- `debug`\n- `info`\n- `warn`\n- `error`\n- `fatal`\n\nYou can also use you're own log handler (it must implement the five log levels in order to prevent your app from crashing):\n\n```js\nconst logger = require('lllog')('error', myHandler);\n\n// Or on runtime\nlogger.setHandler(myOtherHandler);\n```\n\n## Tests\nSimply run `npm t`\n\n## Contributing\nIssues and PRs are welcome, under one condition: maintain the zero dependency promise.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjormaechea%2Flllog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjormaechea%2Flllog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjormaechea%2Flllog/lists"}