{"id":14065250,"url":"https://github.com/cs91chris/flask_logify","last_synced_at":"2025-09-30T08:31:33.368Z","repository":{"id":57430461,"uuid":"164914025","full_name":"cs91chris/flask_logify","owner":"cs91chris","description":"Advanced Logging configuration for flask application based on configuration file (json, yaml), disable logging for route with filters and log message as json","archived":true,"fork":false,"pushed_at":"2022-02-25T23:53:08.000Z","size":81,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-03T16:25:44.081Z","etag":null,"topics":["api","configuration","flask","json-configuration","json-logger","logger-middleware","logging","syslog-messages","yaml-configuration"],"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/cs91chris.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":"2019-01-09T18:12:54.000Z","updated_at":"2023-07-13T21:11:06.000Z","dependencies_parsed_at":"2022-08-26T02:42:40.649Z","dependency_job_id":null,"html_url":"https://github.com/cs91chris/flask_logify","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/cs91chris/flask_logify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cs91chris%2Fflask_logify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cs91chris%2Fflask_logify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cs91chris%2Fflask_logify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cs91chris%2Fflask_logify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cs91chris","download_url":"https://codeload.github.com/cs91chris/flask_logify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cs91chris%2Fflask_logify/sbom","scorecard":{"id":310550,"data":{"date":"2025-08-11","repo":{"name":"github.com/cs91chris/flask_logify","commit":"2ddcd7a46dec2c127daa6c53b5410f33b003f233"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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"}}]},"last_synced_at":"2025-08-17T23:06:54.668Z","repository_id":57430461,"created_at":"2025-08-17T23:06:54.668Z","updated_at":"2025-08-17T23:06:54.668Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277652848,"owners_count":25854374,"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","status":"online","status_checked_at":"2025-09-30T02:00:09.208Z","response_time":75,"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":["api","configuration","flask","json-configuration","json-logger","logger-middleware","logging","syslog-messages","yaml-configuration"],"created_at":"2024-08-13T07:04:23.405Z","updated_at":"2025-09-30T08:31:33.085Z","avatar_url":"https://github.com/cs91chris.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"Flask-Logify\n==============\n\n|version|\n\nAdvanced Logging configuration for flask application based on yaml or json file.\nSee `logging.config \u003chttps://docs.python.org/3/library/logging.config.html\u003e`__\n\nNOTE: If you want to use ``flask_logify.handlers.FlaskSysLogHandler``\nyou must init this extension with an app context.\n\nThe dump of request or response are made by builders, there are two concrete implementations:\n\n  1. ``LogTextBuilder``: message as plain text (configurable).\n  2. ``LogJSONBuilder``: message as json format.\n\nYou can create your own builder by extending class ``LogBuilder``. In order to get the correct remote address\nyou can override ``LogBuilder.get_remote_address`` method or you can inject a function in ``LogBuilder`` constructor.\n\nSee example usage in `example/test.py \u003c./flask_logify/example/test.py\u003e`__.\n\n``FlaskLogging`` as a decorator attribute with which you can disable log messages for a specific route,\npassing a logging filter to it. For example you want disable log for health check endpoint.\nSee `example/text.py \u003c./flask_logify/example/test.py\u003e`__.\n\n\nQuickstart\n~~~~~~~~~~\n\nInstall ``flask_logify`` using ``pip``:\n\n::\n\n   $ pip install Flask-Logify\n\n.. _section-1:\n\nExample usage\n^^^^^^^^^^^^^\n\nAn example of log file configuration is under example folder.\n\nOnly yaml or json format are supported.\n\n.. code:: python\n\n    from flask import Flask\n    from flask_logify import FlaskLogging\n\n\n    app = Flask(__name__)\n    app.config['LOG_FILE_CONF'] = 'log.yaml'\n    app.config['LOG_LOGGER_NAME'] = 'flask-development'\n\n    logging = FlaskLogging()\n    with app.app_context():\n        logging.init_app(app)\n\n    app.run()\n\nGo to http://127.0.0.1:5000/ and see log messages like configured\n\n.. _section-2:\n\nConfiguration\n^^^^^^^^^^^^^\nBase configuration keys:\n\n  1. ``LOGGING``: *(default: None)* dict logging configuration\n  2. ``LOG_FILE_CONF``: *(default: None)* absolute path of configuration file (has priority on LOGGING)\n  3. ``LOG_APP_NAME``: *(default: flask)* the ident of the record used by syslog\n  4. ``LOG_LOGGER_NAME``: *(default: flask-development)* usually is {LOG_APP_NAME}-{FLASK_ENV}\n  5. ``REQUEST_ID_HEADER``: *(default: X-Request-ID)* request id header key\n  6. ``LOG_BUILDER``: *(default: text)* log builder implementation (text, json)\n\nText and JSON builder configuration keys:\n\n  1. ``LOG_REQ_HEADERS``: *(default: [])* request headers to dump always\n  2. ``LOG_RESP_HEADERS``: *(default: [])* response headers to dump always\n  3. ``LOG_REQ_SKIP_DUMP``: *(default: not DEBUG)* if true dump of request body and headers are skipped\n  4. ``LOG_RESP_SKIP_DUMP``: *(default: DEBUG)* if true dump of response body and headers are skipped\n\nText builder only:\n\n  1. ``LOG_RESP_FORMAT``: *(default: \"OUTGOING RESPONSE for {address} at {path}: {level} STATUS {status}{headers}{body}\")*\n     log message format for response\n  2. ``LOG_REQ_FORMAT``: *(default: \"INCOMING REQUEST: {address} {method} {scheme} {path}{headers}{body}\")*\n     log message format for request\n\n\nLicense MIT\n\n.. |version| image:: https://pypip.in/version/flask_logify/badge.png\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcs91chris%2Fflask_logify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcs91chris%2Fflask_logify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcs91chris%2Fflask_logify/lists"}