{"id":22614346,"url":"https://github.com/melchisedech333/log-viewer","last_synced_at":"2025-08-31T10:36:49.882Z","repository":{"id":140760783,"uuid":"540531251","full_name":"melchisedech333/log-viewer","owner":"melchisedech333","description":":hammer: Solution to receive log and debug messages from applications that do not have access to standard input and output. Like Linux Daemons, fork() processes and any similar application. Messages are sent through Non-Blocking Socket, and received in an Electron application.","archived":false,"fork":false,"pushed_at":"2022-10-17T19:16:13.000Z","size":734,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T00:28:10.267Z","etag":null,"topics":["child-process","debug","debugger","debugger-visualizer","debugging","debugging-tool","debugging-tools","fork-process","linux-deamon","log","log-viewer","log-visualization","log-visualizer","logger","logging","non-blocking","non-blocking-communication","non-blocking-io","non-blocking-sockets","sub-process"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/melchisedech333.png","metadata":{"files":{"readme":"readme-pt.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["melchisedech333"]}},"created_at":"2022-09-23T16:39:15.000Z","updated_at":"2022-10-15T23:43:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"32f46b69-6a85-4c8f-ae26-f29bd2911050","html_url":"https://github.com/melchisedech333/log-viewer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/melchisedech333/log-viewer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melchisedech333%2Flog-viewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melchisedech333%2Flog-viewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melchisedech333%2Flog-viewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melchisedech333%2Flog-viewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/melchisedech333","download_url":"https://codeload.github.com/melchisedech333/log-viewer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melchisedech333%2Flog-viewer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272971409,"owners_count":25024093,"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-08-31T02:00:09.071Z","response_time":79,"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":["child-process","debug","debugger","debugger-visualizer","debugging","debugging-tool","debugging-tools","fork-process","linux-deamon","log","log-viewer","log-visualization","log-visualizer","logger","logging","non-blocking","non-blocking-communication","non-blocking-io","non-blocking-sockets","sub-process"],"created_at":"2024-12-08T18:09:25.556Z","updated_at":"2025-08-31T10:36:49.856Z","avatar_url":"https://github.com/melchisedech333.png","language":"C","funding_links":["https://github.com/sponsors/melchisedech333"],"categories":[],"sub_categories":[],"readme":"\n\u003cdiv align='center'\u003e\n\n\u003cimg src=\"images/app.png\" width=\"100%\" \u003e\n\n\u003c/div\u003e\n\n\u003cbr\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/sponsors/melchisedech333\"\u003e\u003cimg src=\"https://img.shields.io/badge/patrocinar-30363D?style=for-the-badge\u0026logo=GitHub-Sponsors\u0026logoColor=#white\" \u003e\u003c/a\u003e\n    \u003cbr\u003e\u003cbr\u003e\n    \u003cimg src=\"https://badgen.net/badge/nível de amor/8 de 10/purple\" \u003e\n    \u003cimg src=\"https://img.shields.io/github/languages/count/melchisedech333/log-viewer?color=%23f34b7d\u0026label=linguagens\" \u003e\n    \u003cimg src=\"https://img.shields.io/github/languages/top/melchisedech333/log-viewer?color=%23f34b7d\" \u003e\n    \u003cimg src=\"https://img.shields.io/github/directory-file-count/melchisedech333/log-viewer?label=arquivos\" \u003e\n    \u003cimg src=\"https://img.shields.io/github/repo-size/melchisedech333/log-viewer?label=tamanho repo\" \u003e\n    \u003cimg src=\"https://img.shields.io/github/license/melchisedech333/log-viewer?label=licen%C3%A7a\" \u003e\n\u003c/p\u003e\n\nLanguage: \u003ca href=\"readme.md\"\u003eEN-US\u003c/a\u003e\n\nQuando você está implementando coisas como Linux Daemons, ou qualquer aplicação onde você não possua acesso ao IO padrão, é interessante ter uma aplicação para receber mensagens do seu programa.\n\nÉ exatamente isto que esta aplicação faz, ela se conecta em um servidor TCP na porta \u003cb\u003e1337\u003c/b\u003e (você pode editar a porta e o endereço IP de destino no arquivo \u003cb\u003eexample/debug.h\u003c/b\u003e).\n\nPara não travar a aplicação ao realizar o envio das mensagens, é utilizado técnicas de Non-Blocking Socket.\n\n**Se meu código te ajudou em algo, considere [ser um patrocinador](https://github.com/sponsors/melchisedech333) :blue_heart:** \n\n\u003cbr\u003e\n\n:computer: Exemplo de uso\n---\n\nBasta adicionar o header \u003cb\u003edebug.h\u003c/b\u003e em sua aplicação, e utilizar como demonstra o código abaixo.\n\n\u003cbr\u003e\n\n```c\n#include \"debug.h\"\n\nint main (int argc, char *argv[])\n{\n    /**\n     * Detailed message example.\n     */\n    say_debug_detail(\"Iesus Hominum Salvator!\");\n\n    /**\n     * Example of common usage.\n     */\n    \n    for (int a=0; a\u003c10; a++) {\n        say_debug(\"Message %d: Iesus Hominum Salvator!\", a);\n        sleep(1);\n    }\n\n    return 0;\n}\n```\n\nPara utilizar a aplicação de visualização das mensagens (como mostra na imagem acima), basta abrir-la utilizando o Electron. Lembrando que a versão do Electron utilizada é a 19.0.0, e você pode encontrá-la aqui: https://github.com/electron/electron/releases/tag/v19.0.0\n\nTudo que você precisa fazer é executar o Electron, passando como parâmetro para ele o diretório da aplicação.\n\n```bash\nelectron .\n```\n\n\u003cbr\u003e\n\n:smiley: Autor\n---\n\nPatrocinar: [melchisedech333](https://github.com/sponsors/melchisedech333)\u003cbr\u003e\nTwitter: [Melchisedech333](https://twitter.com/Melchisedech333)\u003cbr\u003e\nLinkedIn: [Melchisedech Rex](https://www.linkedin.com/in/melchisedech-rex-724152235/)\u003cbr\u003e\nBlog: [melchisedech333.github.io](https://melchisedech333.github.io/)\u003cbr\u003e\n\n\u003ca href=\"https://github.com/melchisedech333\" \u003e\u003cimg src=\"https://github.com/melchisedech333.png?size=200\" height=\"100\" /\u003e\u003c/a\u003e\n\n\u003cbr\u003e\n\n:scroll: Licença\n---\n\n[ BSD-3-Clause license](./license)\n\n\u003cbr\u003e\u003cbr\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n## Lembre-se de deixar \u003cbr\u003e uma linda estrelinha :star_struck:\n\n\u003c/div\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelchisedech333%2Flog-viewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmelchisedech333%2Flog-viewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelchisedech333%2Flog-viewer/lists"}