{"id":20459744,"url":"https://github.com/rosbit/logmerger","last_synced_at":"2025-10-28T10:06:16.096Z","repository":{"id":57485937,"uuid":"187993362","full_name":"rosbit/logmerger","owner":"rosbit","description":"A utility package which can be used to process log file asynchronously","archived":false,"fork":false,"pushed_at":"2024-05-01T11:30:23.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-13T21:15:42.042Z","etag":null,"topics":["asynchronously","log","merger"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/rosbit.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-22T08:12:29.000Z","updated_at":"2024-05-01T11:29:12.000Z","dependencies_parsed_at":"2024-05-01T13:00:58.349Z","dependency_job_id":"e7a4ef27-9ff6-4fa2-b1ea-5ce89040d4bd","html_url":"https://github.com/rosbit/logmerger","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/rosbit/logmerger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosbit%2Flogmerger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosbit%2Flogmerger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosbit%2Flogmerger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosbit%2Flogmerger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rosbit","download_url":"https://codeload.github.com/rosbit/logmerger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosbit%2Flogmerger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281418370,"owners_count":26497783,"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-10-28T02:00:06.022Z","response_time":60,"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":["asynchronously","log","merger"],"created_at":"2024-11-15T12:17:08.702Z","updated_at":"2025-10-28T10:06:16.073Z","avatar_url":"https://github.com/rosbit.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logmerger\n\nA utility package which can be used to process log file asynchronously.\n\n## Archtecture\n```\n                    +---------------+                    +---------------------+ \u003c--- log-files such as:\n  log-generator ---\u003e+   log-file    +---\u003e logmerger ---\u003e + log-files-with-date |      log-file_20190522\n                    +---------------+        |           +----------+----------+      log-file_20190523\n                                             V                      ^                 log-file_2019....\n                                +------------+-------------+        |\n                                | current-log-file-content +--------+\n                                +------------+-------------+\n                                             |\n                                             V\n                                    one-log-file-handler\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n\tlm \"github.com/rosbit/logmerger\"\n\t\"fmt\"\n)\n\nfunc main() {\n\tm := lm.NewLogMerger(100)  // time interval to check the existence of log-file\n\tm.Run(\"log-file-name.here\", sampleLogFileHandler)  // use go m.Run(...) if you don't want to block\n}\n\nfunc sampleLogFileHandler(fileName string) {\n\tfmt.Printf(\"process file %s as you need here\\n\", fileName)\n\t// make sure the log-file not be opened\n}\n```\n\n## Status\n\nThe package is fully tested.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frosbit%2Flogmerger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frosbit%2Flogmerger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frosbit%2Flogmerger/lists"}