{"id":27557314,"url":"https://github.com/fmakdemir/colored-logger","last_synced_at":"2026-07-01T04:32:10.896Z","repository":{"id":52705876,"uuid":"65017985","full_name":"fmakdemir/colored-logger","owner":"fmakdemir","description":"Colored Logger library for python","archived":false,"fork":false,"pushed_at":"2021-04-20T17:05:14.000Z","size":69,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-06T04:52:42.930Z","etag":null,"topics":["colored","colored-log","library","logger","logging","python","python-3"],"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/fmakdemir.png","metadata":{"files":{"readme":"README.rst","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}},"created_at":"2016-08-05T12:48:44.000Z","updated_at":"2018-01-31T11:21:34.000Z","dependencies_parsed_at":"2022-08-22T08:00:28.093Z","dependency_job_id":null,"html_url":"https://github.com/fmakdemir/colored-logger","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/fmakdemir/colored-logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmakdemir%2Fcolored-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmakdemir%2Fcolored-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmakdemir%2Fcolored-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmakdemir%2Fcolored-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fmakdemir","download_url":"https://codeload.github.com/fmakdemir/colored-logger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmakdemir%2Fcolored-logger/sbom","scorecard":{"id":405354,"data":{"date":"2025-08-11","repo":{"name":"github.com/fmakdemir/colored-logger","commit":"3926cfd6990ad579c2865ed0c46ee4cdb47ed259"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/25 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2020-92 / GHSA-hj5v-574p-mj7c","Warn: Project is vulnerable to: PYSEC-2022-42969"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T21:06:29.482Z","repository_id":52705876,"created_at":"2025-08-18T21:06:29.482Z","updated_at":"2025-08-18T21:06:29.482Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34993435,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-01T02:00:05.325Z","response_time":130,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["colored","colored-log","library","logger","logging","python","python-3"],"created_at":"2025-04-19T20:29:24.342Z","updated_at":"2026-07-01T04:32:10.853Z","avatar_url":"https://github.com/fmakdemir.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. role:: cmd(code)\n   :language: python\n\n.. role:: red\n\n.. role:: green\n\n.. role:: blue\n\n.. role:: teal\n\n************************\nColoredLogger for Python\n************************\n\n.. image:: https://img.shields.io/pypi/v/coloredlogger.svg\n    :target: https://pypi.python.org/pypi/coloredlogger/\n.. image:: https://img.shields.io/badge/wheel-yes-brightgreen.svg\n    :target: https://pypi.python.org/pypi/coloredlogger/\n.. image:: https://travis-ci.org/fmakdemir/colored-logger.svg?branch=master\n    :target: https://travis-ci.org/fmakdemir/colored-logger\n\n\nColored Logger for Python that uses clorama for colorful output with timestamp\nand customizable format. Colored Logger has timestamp, colored header or full line,\nand custom time format\n\nColored Logger for Python that uses clorama for colorful output with timestamp and customizable format\n\nSetup\n#####\n\nUse :cmd:`pip install coloredlogger` to install using pip or\nuse source code and install requirements with :cmd:`pip install -r requirements.txt`\n\nget a logger with:\n\n.. code-block:: python\n\n    from coloredlogger import ColoredLogger\n    logger = ColoredLogger(name=OPTIONAL_LOGGER_NAME)\n\nor get logger with optional config name and config\n\n.. code-block:: python\n\n    import coloredlogger\n    logger = coloredlogger.get_logger(name=OPTIONAL_LOGGER_NAME, OPTIONAL_CONFIG_LIST)\n\nlog using pre-setup methods:\n\n.. code-block:: python\n\n    logger.wtf('WTF??')\n    logger.error('Omg red as rose error')\n    logger.success('Such success much green wow')\n    logger.info('just a blue info')\n    logger.verbose('some log here')\n\nAnd you should see:\n\n.. image:: https://github.com/Fmakdemir/colored-logger/blob/master/assets/coloredlog-1.png?raw=true\n\n..\n    | 2016-11-05 21:35:55 :red:`[-] Omg red as rose error`\n    | 2016-11-05 21:35:55 :green:`[+] Such success much green wow`\n    | 2016-11-05 21:35:55 :blue:`[?] just a blue info`\n    | 2016-11-05 21:35:55 [ ] some log here\n\nor make your own log method using a name prefix color level and whether only\nheader will be colored or the whole line:\n\n.. code-block:: python\n\n    logger.add_config('my-log', {'prefix': \"ROCK!\",'color': ColoredLogger.COLORS.CYAN, 'header-only': True})\n    logger.log('my-log', 'YOU!')\n    logger.log('my-log', 'ALL!')\n    logger.log('my-log', 'test', 'with', 'at', 'symbols', sep='@')\n\n..\n    | 2016-11-05 21:35:55 :teal:`ROCK!` YOU!\n    | 2016-11-05 21:35:55 :teal:`ROCK!` ALL!\n    | 2016-11-05 21:35:55 :teal:`ROCK!` test@with@at@symbols\n\nAnd you should see:\n\n.. image:: https://github.com/Fmakdemir/colored-logger/blob/master/assets/coloredlog-2.png?raw=true\n\nYou can also overwrite previous configs by:\n\n\n.. code-block:: python\n\n    logger.add_config('error', {'prefix': 'Custom error with {{TIME}}: ', 'timestamp': '[%Hh:%Mm:%Ss]', 'header-only': True})\n\n\nThis will overwrite :code:`error` config's properties with given ones which\nare :code:`prefix`, :code:`timestamp` and :code:`header-only`\n\n.. image:: https://github.com/Fmakdemir/colored-logger/blob/master/assets/coloredlog-3.png?raw=true\n\nAdding a new config using logger name and init configs is done as in following:\n\n\n.. code-block:: python\n\n    logger = get_logger('MY LOG', [{'config_name': 'custom-log', 'config': {'timestamp': '%Y/%m/%d %H:%M:%S'}}])\n    logger.info('This should have [MY LOG] [?] as prefix')\n    logger.success('This should have [MY LOG] [+] as prefix')\n    logger.verbose('Yeey')\n    logger.log('custom-log', 'This custom log should have overwritten timestamp')\n\n.. image:: https://github.com/Fmakdemir/colored-logger/blob/master/assets/coloredlog-4.png?raw=true\n\nConfig object\n#############\nAll keys are optional and if not given will be overridden by defaults\n\n.. code-block:: python\n\n    {\n        'level': 10, # integer\n        'timestamp': '%Y-%m-%d %H:%M:%S', # timestamp format used with strftime\n        'prefix': '[ ]', # prefix which can include {{TIME}} to put timestamp with\n        'color': coloredlogger.COLORS.WHITE, # one of coloredlogger.COLORS\n        'header-only': False # whether or not color whole line or just header\n    }\n\nCOLORS Object\n*************\n\nFollowing colors are supported:\n\n**Normal:** :code:`BLACK, BLUE, CYAN, GREEN, MAGENTA, RED, WHITE, YELLOW`\n\n**Light:** :code:`LIGHTBLACK_EX, LIGHTBLUE_EX, LIGHTCYAN_EX, LIGHTGREEN_EX, LIGHTMAGENTA_EX, LIGHTRED_EX, LIGHTWHITE_EX, LIGHTYELLOW_EX`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffmakdemir%2Fcolored-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffmakdemir%2Fcolored-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffmakdemir%2Fcolored-logger/lists"}