{"id":17897775,"url":"https://github.com/j-city/somelogger","last_synced_at":"2025-04-03T04:42:31.151Z","repository":{"id":76891637,"uuid":"187190878","full_name":"J-CITY/SomeLogger","owner":"J-CITY","description":"Simpe logger for c++ and python","archived":false,"fork":false,"pushed_at":"2025-03-01T08:46:37.000Z","size":592,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T09:26:33.894Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/J-CITY.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":"2019-05-17T09:47:30.000Z","updated_at":"2025-03-01T08:46:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"a550a68b-fd80-43b8-9d83-aff4536a8d00","html_url":"https://github.com/J-CITY/SomeLogger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J-CITY%2FSomeLogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J-CITY%2FSomeLogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J-CITY%2FSomeLogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J-CITY%2FSomeLogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/J-CITY","download_url":"https://codeload.github.com/J-CITY/SomeLogger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246939188,"owners_count":20857916,"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","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":[],"created_at":"2024-10-28T15:15:19.235Z","updated_at":"2025-04-03T04:42:31.137Z","avatar_url":"https://github.com/J-CITY.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple logger for `C++` and `Python`\n\nAlso it support tables and lists for more beautiful output\n\n## Usage in `C++`\n\n```c++\n#include \u003ciostream\u003e\n#include \"SomeLogger.h\"\n\nusing namespace std;\nusing namespace SomeLogger;\n\nint main() {\n\tLogger logger = Logger::Instance();\n\n\t// PRINT_LINE and PRINT_LINE_STR - define for print code line\n\n\t// stream\n\tlogger.log(LoggerLevel::ERR, Color::Red, Color::Blue) \u003c\u003c \n\t\tPRINT_LINE_STR \u003c\u003c \" TEST\" \u003c\u003c Endl();\n\t// format output\n\tlogger.log(LoggerLevel::ERR, Color::Red, Color::Blue)\n\t\t.logFormat(\"Data: %d - %d\", 42, PRINT_LINE).endl();\n\n\t// print containers\n\tstd::map\u003cstd::string, int\u003e m = {\n\t\t{\"one\", 1},\n\t\t{\"two\", 2},\n\t\t{\"three\", 3},\n\t};\n\tstd::vector\u003cint\u003e v = { 0,1,2 };\n\n\tlogger \u003c\u003c m \u003c\u003c Endl();\n\tlogger \u003c\u003c v \u003c\u003c Endl();\n\n\t// print list\n\tList l;\n\tl \u003c\u003c \"TEST\";\n\tl \u003c\u003c \"TEST\";\n\tl \u003c\u003c \"TEST\";\n\tl \u003c\u003c \"TEST\";\n\tl \u003c\u003c \"TEST\";\n\tl.print();\n\t//or\n\tlogger \u003c\u003c l \u003c\u003c Endl();\n\n\t// print table\n\tTable t(5, 5);\n\tt.insert(1, 1, \"!!!!\");\n\tt.insert(1, 2, \"!!!!\");\n\tt.insert(1, 3, \"!!!!\");\n\tt.insert(4, 4, \"!!!!\");\n\tt[2][4] = TableElem(\"QWQFS\");\n\tt.print();\n\t// or\n\tlogger \u003c\u003c t \u003c\u003c Endl();\n\n\treturn 0;\n}\n```\n\n## Usage in `Python`\n\n```python\nl=Logger()\nl.log(Level.ERROR).lprint(\"TEST\")\n\n# print list\nl = List()\nl.insert(List.ElemList(\"TEST\"))\nl.insert(List.ElemList(\"TEST\"))\nl.insert(List.ElemList(\"TEST\"))\nl.insert(List.ElemList(\"TEST\"))\nl.insert(List.ElemList(\"TEST\"))\nl.lprint()\n\n# print table\nt = Table(5, 3)\nt.insert(1, 1, \"!!!!\")\nt.insert(2, 1, \"!!!fsdf!\")\nt.insert(0, 1, \"!22!\")\nt.insert(0, 0, \"!\")\nt.tprint()\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj-city%2Fsomelogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj-city%2Fsomelogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj-city%2Fsomelogger/lists"}