{"id":34036036,"url":"https://github.com/buggist/littlelog","last_synced_at":"2026-04-11T10:02:18.322Z","repository":{"id":256918104,"uuid":"856816946","full_name":"Buggist/LittleLog","owner":"Buggist","description":"Minimalism python logger. Import it directly in one python file, or create a configurable instance as the logger of your whole project.","archived":false,"fork":false,"pushed_at":"2024-09-16T05:56:03.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-15T11:50:41.524Z","etag":null,"topics":["log","logger","logging","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Buggist.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":"2024-09-13T09:04:19.000Z","updated_at":"2024-09-16T05:56:06.000Z","dependencies_parsed_at":"2024-09-13T22:30:43.588Z","dependency_job_id":"455ab03c-066b-448d-9821-41b51bc49fd0","html_url":"https://github.com/Buggist/LittleLog","commit_stats":null,"previous_names":["buggist/easylog","buggist/littlelog"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Buggist/LittleLog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Buggist%2FLittleLog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Buggist%2FLittleLog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Buggist%2FLittleLog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Buggist%2FLittleLog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Buggist","download_url":"https://codeload.github.com/Buggist/LittleLog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Buggist%2FLittleLog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31676210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T08:18:19.405Z","status":"ssl_error","status_checked_at":"2026-04-11T08:17:08.892Z","response_time":54,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","python"],"created_at":"2025-12-13T20:08:51.316Z","updated_at":"2026-04-11T10:02:18.314Z","avatar_url":"https://github.com/Buggist.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LitteLog\nMinimalism python logger. Import it directly to use it in single python file, or create a configurable instance as the logger of your whole project.\n\n## Installation\n```\npip install littlelog\n```\n\n## Usage\n\n### Use it in single *.py* file\n```python\nfrom littlelog import logger, debugger\n\n# Config log output path\nlogger.outputs.append(\"logs/\")\n\n# manually log - five levels in total\nlogger.debug(\"Log a debug information.\")\nlogger.info(\"Log a information.\")\nlogger.warning(\"Log a warning.\")\nlogger.error(\"Log a error.\")\nlogger.critical(\"Log a critical error.\")\n\n# function decorator\n@debugger\ndef your_function():\n    # Debugger will automatically log the start and end status of this function on 'debug' level,\n    # - and log error on 'error' level.\n    ...\n    return \"Hello!\"\n\n@debugger\ndef div_func(a, b):\n    return a / b\n\nyour_function()\ndiv_func(3, 0)\n```\n\n### Use it as logger of whole project\nShoulda create a independent logger module from littlelog for your project.\n\n*project_logger.py*\n```python\nimport littlelog\n\n# Log files will be output to \"where/your/logs/output\".\n# Logger config of your project saves at \"where/ProjectConfig/file/stay\"\nlogger = littlelog.new(\"where/your/logs/output\", \"where/ProjectConfig/file/stay\")\n\ndebugger = logger.log_decorator    # optional\n```\nAnd import ***project_logger.py*** instead of ***littlelog*** to fetch logger in any file of current project,\nthey will share exactly 1 logger and same configurations.\n\nAll changes of configuration will be saved.\n\n### Log file name format\n```\nlog_YYYY-MM-DD_id.txt\n```\ne.g: log_2024-09-16_1.txt\n\n### Log file content example\n```\n2024-09-16 10:49:00,012 - DEBUG\nLog a debug information.\n\n2024-09-16 10:49:00,012 - INFO\nLog a information.\n\n2024-09-16 10:49:00,012 - WARNING\nLog a warning.\n\n2024-09-16 10:49:00,012 - ERROR\nLog a error.\n\n2024-09-16 10:49:00,012 - CRITICAL\nLog a critical error.\n\n2024-09-16 10:49:00,012 - DEBUG\nFunction Start: your_function\n\n2024-09-16 10:49:00,012 - DEBUG\nFunction complete: your_function, \n  return as Hello!\n\n2024-09-16 10:49:00,012 - DEBUG\nFunction Start: div_func\n\n2024-09-16 10:49:00,012 - ERROR\nFunction execution error: div_func, Messages: division by zero\nTraceback (most recent call last):\n  File \"C:\\project\\littlelog\\littlelog.py\", line 377, in wrapper\n    result = func(*args, **kwargs)\n             ^^^^^^^^^^^^^^^^^^^^^\n  File \"C:\\project\\littlelog\\example\\test.py\", line 22, in div_func\n    return a / b\n           ~~^~~\nZeroDivisionError: division by zero\n```\n\n### Configurations\n```python\n# add log output path\nlogger.outputs.append(\"new/logs/path\")   # (default is [])\n\n# \"debug\", \"info\", \"warning\", \"error\", \"critical\"\nlogger.level = \"debug\"                   # (default is \"debug\")\n\n# MB           \nlogger.max_file_size = 5                 # (default is 2)\n\n# Oldest file will be delete when reaching this limitation.\nlogger.max_files = 20                    # (default is 10)\n\n# Disable logging to terminal.\nlogger.terminal = False                  # (default is True)\n```\n\nAll changes of Configuration will be apply to logger imediatly.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuggist%2Flittlelog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuggist%2Flittlelog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuggist%2Flittlelog/lists"}