{"id":23740142,"url":"https://github.com/cobbzilla/lcstream","last_synced_at":"2025-07-08T11:40:47.375Z","repository":{"id":7480150,"uuid":"8828532","full_name":"cobbzilla/lcstream","owner":"cobbzilla","description":"lcstream = Log Collating Stream. Read from and collate multiple log files into a single chronologically ordered stream. ","archived":false,"fork":false,"pushed_at":"2013-03-17T02:08:56.000Z","size":120,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-31T09:47:08.407Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cobbzilla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-17T02:07:50.000Z","updated_at":"2017-03-31T21:07:03.000Z","dependencies_parsed_at":"2022-08-27T18:10:31.566Z","dependency_job_id":null,"html_url":"https://github.com/cobbzilla/lcstream","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/cobbzilla%2Flcstream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cobbzilla%2Flcstream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cobbzilla%2Flcstream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cobbzilla%2Flcstream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cobbzilla","download_url":"https://codeload.github.com/cobbzilla/lcstream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239886404,"owners_count":19713485,"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-12-31T09:47:16.430Z","updated_at":"2025-02-20T17:42:11.375Z","avatar_url":"https://github.com/cobbzilla.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"lcstream\n========\n\nlcstream = Log Collating Stream. Read from and collate multiple log files into a single chronologically ordered stream.\n\n(c) Copyright 2013 Jonathan Cobb.\nThis code is available under the Apache License, version 2: http://www.apache.org/licenses/LICENSE-2.0.html\n\n### Usage\n\nlcstream assumes that the timestamps appear at the beginning of each log line.\nlcstream does not yet support logs where the timestamps appear in the middle of the line.\n\n    OutputStream out = .... // this is where the CollatingStream will write collated output\n    String DATE_TIME_FORMAT = \"YYYY-MM-dd HH:mm:ss,SSS\"; // the date-time format. uses joda-time.\n    CollatingStream collatingStream = new CollatingStream(out, DATE_TIME_FORMAT);\n\n    OutputStream out1 = collatingStream.addFeeder(\"feeder1\");\n    OutputStream out2 = collatingStream.addFeeder(\"feeder2\");\n\n    // ... spawn threads to write lots of log data concurrently to out1 and out2 ...\n\n    // then, once your threads are done writing to out1 and out2, you must call close (or flush)\n    // to ensure the last few lines get sent to the CollatingStream\n    out1.close();\n    out2.close();\n\n    collatingStream.close(); // or flush, sends any remaining log lines to out\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcobbzilla%2Flcstream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcobbzilla%2Flcstream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcobbzilla%2Flcstream/lists"}