{"id":20027585,"url":"https://github.com/gothenburgbitfactory/clog","last_synced_at":"2025-05-05T02:31:36.773Z","repository":{"id":58445308,"uuid":"120088048","full_name":"GothenburgBitFactory/clog","owner":"GothenburgBitFactory","description":"Clog is a colorized log tail utility","archived":false,"fork":false,"pushed_at":"2018-02-18T10:31:46.000Z","size":205,"stargazers_count":27,"open_issues_count":1,"forks_count":3,"subscribers_count":6,"default_branch":"1.4.0","last_synced_at":"2025-04-08T15:52:46.565Z","etag":null,"topics":[],"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/GothenburgBitFactory.png","metadata":{"files":{"readme":"README","changelog":"ChangeLog","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-03T12:14:04.000Z","updated_at":"2025-01-10T10:18:56.000Z","dependencies_parsed_at":"2022-09-10T20:00:54.779Z","dependency_job_id":null,"html_url":"https://github.com/GothenburgBitFactory/clog","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GothenburgBitFactory%2Fclog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GothenburgBitFactory%2Fclog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GothenburgBitFactory%2Fclog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GothenburgBitFactory%2Fclog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GothenburgBitFactory","download_url":"https://codeload.github.com/GothenburgBitFactory/clog/tar.gz/refs/heads/1.4.0","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252427896,"owners_count":21746294,"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-11-13T09:10:54.432Z","updated_at":"2025-05-05T02:31:34.311Z","avatar_url":"https://github.com/GothenburgBitFactory.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"What is clog?\n=============\n\nClog is a filter that colorizes log files. Have you ever done something like\nthis:\n\n    $ tail -f /var/log/something.log\n\nThen left that running in a terminal, while you debug or run some program? Were\nyou able to spot important information as it scrolled by? Depending on the\nvolume of data scrolling by, it can be difficult to spot important information.\n\nClog is a filter, that you run like this:\n\n    $ tail -f /var/log/something.log | clog something\n\nThe 'something' argument to clog is a section, which refers to a section in\n~/.clogrc with a distinct set of rules. Those rules list patterns to look for,\nand actions to take when the pattern is matched by a line. A typical example\nmight be that you want to highlight any line that contains the pattern 'severe'.\nThis entry in ~/clogrc achieves this:\n\n    something rule /severe/ --\u003e bold line\n\nThis rule is in the 'something' section, the pattern is 'severe', and the action\ntaken is to embolden the whole line. Pattern 'severe' should probably be more\nrestrictive, because it will also match words like 'persevered', but that is\noptional.\n\nAny color can be used, in both the 16- and 256-color space. Some examples are:\n\n    bold\n    underline\n    bold blue\n    underline on green\n    black on white\n    bold red on bright white\n    rgb200 on grey4\n\nInstead of coloring the whole line, specifying 'match' instead will only color\nthe parts of the line that match.\n\nThe format of the rules is:\n\n    \u003csection\u003e rule /\u003cpattern\u003e/ --\u003e \u003ccolor\u003e \u003caction\u003e\n\nThe section is simply a way to allow multiple rules sets, so that one .clogrc\nfile can serve multiple uses. The pattern is any supported Standard C Library\nregular expression. Action must be one of 'line', 'match', 'suppress' or\n'blank'.\n\nRules are processed in order, from top to bottom. This means that a rule defined\nlower in the rc file gets to apply it's color later, and therefore 'on top of'\nthat of an earlier rule.\n\nNote that there is a default section, called 'default'. Putting rules in the\ndefault section means that you do not need to specify a section on the command\nline. Multiple sections may be specified, and the rules are combined.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgothenburgbitfactory%2Fclog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgothenburgbitfactory%2Fclog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgothenburgbitfactory%2Fclog/lists"}