{"id":20561013,"url":"https://github.com/notafile/tinylualogger","last_synced_at":"2026-04-19T12:33:04.872Z","repository":{"id":82335732,"uuid":"62421614","full_name":"NotAFile/tinylualogger","owner":"NotAFile","description":"Simple single file Lua logging module. Could have been a gist really, but that would have been harder for me to find again.","archived":false,"fork":false,"pushed_at":"2016-07-01T22:19:21.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T19:23:05.904Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","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/NotAFile.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":"2016-07-01T21:53:02.000Z","updated_at":"2016-07-01T21:57:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"b7184cd9-b344-44fd-afed-e7b779deac0a","html_url":"https://github.com/NotAFile/tinylualogger","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/NotAFile%2Ftinylualogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotAFile%2Ftinylualogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotAFile%2Ftinylualogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotAFile%2Ftinylualogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NotAFile","download_url":"https://codeload.github.com/NotAFile/tinylualogger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242171347,"owners_count":20083553,"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-11-16T03:56:32.364Z","updated_at":"2026-04-19T12:32:59.840Z","avatar_url":"https://github.com/NotAFile.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tinylualogger\nSimple single file Lua logging module. Could have been a gist really, but that would have been harder for me to find again.\n\n##Usage\nJust `require(\"logging\")` in all files that require logging.\n\nTo change the default logging level from `INFO` to something else, call `logging.set_default_loglevel(loglevel)` directly after `require(\"logging\")`, where `loglevel` is one of `logging.loglevels`.\n\nTo log, you must first create a logger:\n\n    local logger = logging.logger.new(loggername)\n    \nWhere `loggername` is the name of the logger. To use the name of the current module as a name (recommended), pass `...`. If not given, the logger name defaults to `root`\n\nAfter that, you can use the logger as expected:\n\n    logger.debug(\"debug message\") -- DEBUG:root: debug message\n    logger.info(\"info message\") -- INFO:root: info message\n    logger.warn(\"warning message\") -- WARN:root: warning message\n    logger.error(\"error message\") -- ERROR:root: error message\n    logger.critical(\"critical error message\") -- CRITICAL:root: critical error message\n    \nTo change the logging level for this file only, use `logger.set_loglevel(loglevel)` in similar fashion to `logging.set_default_loglevel(loglevel)`\n    \nsee `tests/` for an example project (it's a bit preposterous of me to call them tests)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotafile%2Ftinylualogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotafile%2Ftinylualogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotafile%2Ftinylualogger/lists"}