{"id":32719127,"url":"https://github.com/cove9988/print2log","last_synced_at":"2026-06-20T20:31:07.464Z","repository":{"id":57454841,"uuid":"124176920","full_name":"cove9988/print2log","owner":"cove9988","description":null,"archived":false,"fork":false,"pushed_at":"2018-03-19T22:33:44.000Z","size":44,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-02T18:05:47.491Z","etag":null,"topics":["logging","print","python3","recursive"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cove9988.png","metadata":{"files":{"readme":"README.md","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":"2018-03-07T04:01:29.000Z","updated_at":"2018-04-30T11:14:31.000Z","dependencies_parsed_at":"2022-09-05T05:40:41.330Z","dependency_job_id":null,"html_url":"https://github.com/cove9988/print2log","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cove9988/print2log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cove9988%2Fprint2log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cove9988%2Fprint2log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cove9988%2Fprint2log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cove9988%2Fprint2log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cove9988","download_url":"https://codeload.github.com/cove9988/print2log/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cove9988%2Fprint2log/sbom","scorecard":{"id":306132,"data":{"date":"2025-08-11","repo":{"name":"github.com/cove9988/print2log","commit":"2c813fac392174dafab869275921d365413601b4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"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":"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":"Code-Review","score":0,"reason":"Found 0/18 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":"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":"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":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: print2log/__pycache__/print2log.cpython-36.pyc:1"],"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":"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":"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":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Warn: project license file does not contain an FSF or OSI license."],"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":"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-17T22:06:06.349Z","repository_id":57454841,"created_at":"2025-08-17T22:06:06.349Z","updated_at":"2025-08-17T22:06:06.349Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34585195,"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-06-20T02:00:06.407Z","response_time":98,"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":["logging","print","python3","recursive"],"created_at":"2025-11-02T18:03:26.995Z","updated_at":"2026-06-20T20:31:07.443Z","avatar_url":"https://github.com/cove9988.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# print2log #\r\nUsing decorator, minimal change required from replace any print statement. \r\n\r\nSimple and fast use this lib to add log file from your print statement with minimal change,\r\nand more. \r\n1. better formating for the print and log, configurable \r\n2. additional log file with customized log_level, configurable \r\n3. catch function exception with raise error stop or continue running, configurable\r\n4. catch function running time, configurable\r\n5. display a colorful print based on log_level, configurable\r\n\r\n# example #\r\n\r\n```python\r\nfrom  print2log import print_log, log_initial, print_recursion_tree\r\n################ testing ############################\r\nclass testingA():\r\n    @print_log\r\n    def my_testing(self, t):\r\n        print(t)\r\n        print('info ', 'String 1', ' String 2 ', t)\r\n        print('info ', t, {'  Dictionary': 'value'})\r\n        print('warning ', t, {'My test ': 'My test result'})\r\n        print('debug ', t, {' Debug': 'Good line'})\r\n        print('error ', t, ('Error line', 'stop it here.'))\r\n        print('critical: this is must print')\r\n\r\n    @print_log\r\n    def my_area(e):\r\n        print('critical: this is must print')\r\n        y = 1 / 0\r\n\r\n\r\n@print_recursion_tree\r\ndef fib(n):\r\n    if n == 1:\r\n        return 0\r\n    if n == 2:\r\n        return 1\r\n    return fib(n - 1) + fib(n - 2)\r\n\r\nif __name__ == '__main__':\r\n    \r\n    log_initial('inital', 'c:\\\\paulwork\\\\testing\\deploy\\\\log', \r\n        disable_color = False, function_run_time =False, exception_stop =False)\r\n    a = testingA()\r\n    a.my_testing('This is the first test string')\r\n\r\n    a.my_area('Second test string')\r\n\r\n    fib(5)\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcove9988%2Fprint2log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcove9988%2Fprint2log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcove9988%2Fprint2log/lists"}