{"id":34082932,"url":"https://github.com/coal0/backtrack","last_synced_at":"2026-04-06T09:01:34.796Z","repository":{"id":57413671,"uuid":"112076380","full_name":"coal0/backtrack","owner":"coal0","description":"Simple logging in Python 3.","archived":false,"fork":false,"pushed_at":"2017-11-30T11:58:09.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-02T19:48:48.738Z","etag":null,"topics":["logger","logging"],"latest_commit_sha":null,"homepage":null,"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/coal0.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-26T11:18:20.000Z","updated_at":"2018-07-14T19:49:55.000Z","dependencies_parsed_at":"2022-09-05T02:11:42.053Z","dependency_job_id":null,"html_url":"https://github.com/coal0/backtrack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coal0/backtrack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coal0%2Fbacktrack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coal0%2Fbacktrack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coal0%2Fbacktrack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coal0%2Fbacktrack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coal0","download_url":"https://codeload.github.com/coal0/backtrack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coal0%2Fbacktrack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31466228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T08:36:52.050Z","status":"ssl_error","status_checked_at":"2026-04-06T08:36:51.267Z","response_time":112,"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":["logger","logging"],"created_at":"2025-12-14T12:30:27.547Z","updated_at":"2026-04-06T09:01:34.788Z","avatar_url":"https://github.com/coal0.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"backtrack\n---------\n\nbacktrack is a simple logging tool for Python 3.\nFeatures:\n\n* Simple\n* MIT licensed\n* Supports all file descriptor 'writable' objects.\n* Supports colored output\n* Supports three useful formatting keys (datetime, unixtime, file)\n\nTo install backtrack, run\n\n.. code-block:: shell\n    \n    pip install backtrack\n\nor\n\n.. code-block:: shell\n\n    pip3 install backtrack\n\nDocumentation\n#############\n\n``configure(file_descriptor=sys.stdout, level=INFO, use_color=False)``:\n\nSet logging options.\n\nParameters:\n\n* ``file_descriptor``: A file descriptor with a ``write`` method. Defaults to ``sys.stdout``.\n* ``level``: An integer (any of 0, 1, 2 for INFO, WARNING and ERROR respectively). Defaults to INFO.\n* ``use_color``: Whether or not to use ANSI color codes. Defaults to False.\n\nReturns:\n\n* ``None``\n\nRaises:\n\n* ``RuntimeError`` if ``file_descriptor`` has no ``write`` method.\n* ``ValueError`` if ``level`` is not any of INFO, WARNING, ERROR.\n\n|\n|\n\n``error(message)``:\n\nWrite a level 2 (ERROR) message to the file.\n\nParameters:\n\n* ``message``: The message to write to the file.\n\nReturns:\n\n* ``None``\n\n|\n|\n\n``info(message)``:\n\nWrite a level 0 (INFO) message to the file.\n\nParameters:\n\n* ``message``: The message to write to the file.\n\nReturns:\n\n* ``None``\n\n|\n|\n\n``warning(message)``:\n\nWrite a level 1 (WARNING) message to the file.\n\nParameters:\n\n* ``message``: The message to write to the file.\n\nReturns:\n\n* ``None``\n\n|\n|\n\nThe ``message`` argument passed to the logging functions can contain these formatting keys:\n\n* ``{datetime}``: The date and time as reported by ``time.ctime``.\n* ``{unixtime}``: The unix timestamp as reported by ``time.time``.\n* ``{file}``: The calling file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoal0%2Fbacktrack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoal0%2Fbacktrack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoal0%2Fbacktrack/lists"}