{"id":19885240,"url":"https://github.com/dinstone/loghub","last_synced_at":"2026-06-08T02:32:36.786Z","repository":{"id":45415022,"uuid":"155938134","full_name":"dinstone/loghub","owner":"dinstone","description":"loghub is logging delegate hub","archived":false,"fork":false,"pushed_at":"2022-07-05T12:35:10.000Z","size":109,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-11T18:47:07.966Z","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/dinstone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license/ApacheLicenseV2.0","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-03T01:17:47.000Z","updated_at":"2022-07-05T12:34:31.000Z","dependencies_parsed_at":"2022-08-20T11:11:09.868Z","dependency_job_id":null,"html_url":"https://github.com/dinstone/loghub","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/dinstone%2Floghub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinstone%2Floghub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinstone%2Floghub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinstone%2Floghub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dinstone","download_url":"https://codeload.github.com/dinstone/loghub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241313179,"owners_count":19942417,"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-12T17:33:42.314Z","updated_at":"2026-06-08T02:32:31.762Z","avatar_url":"https://github.com/dinstone.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What\n**Loghub** is a log delegate.\n\n# Quick Start\nselect log implement:\n```xml\n\t\t\u003cdependency\u003e\n\t\t\t\u003cgroupId\u003ecom.dinstone.loghub\u003c/groupId\u003e\n\t\t\t\u003cartifactId\u003eloghub-core\u003c/artifactId\u003e\n\t\t\t\u003cversion\u003e1.3.1\u003c/version\u003e\n\t\t\u003c/dependency\u003e\n```\nor\n```xml\n\t\t\u003cdependency\u003e\n\t\t\t\u003cgroupId\u003ecom.dinstone.loghub\u003c/groupId\u003e\n\t\t\t\u003cartifactId\u003eloghub-slf4j\u003c/artifactId\u003e\n\t\t\t\u003cversion\u003e1.3.1\u003c/version\u003e\n\t\t\u003c/dependency\u003e\n```\n\n# Example\n##JUL##\n\n```java\n\t@Test\n\tpublic void test01() throws InterruptedException {\n\t\tLoggerFactory.getLogger(\"\");\n\n\t\tJulOption option = new JulOption().setPattern(\"logs/loghub.log\").setLimitDays(3);\n\t\tJulDelegateFactory factory = new JulDelegateFactory(option);\n\t\tLoggerFactory.initialise(factory);\n\n\t\tLogger logger = LoggerFactory.getLogger(LoggerTest.class);\n\t\tfor (int i = 0; i \u003c 5; i++) {\n\t\t\tlogger.info(\"case 01 {},{}\", i);\n\t\t}\n\n\t\tThread.sleep(1000);\n\t}\n```\n\n##SLF4j/Log4j/Log4j2##\n```java\n\t@Test\n\tpublic void test00() throws InterruptedException {\n\t\tLogger logger = LoggerFactory.getLogger(LoggerTest.class);\n\t\tfor (int i = 0; i \u003c 5; i++) {\n\t\t\tlogger.info(\"case 00 {},{}\", i);\n\t\t}\n\n\t\tThread.sleep(1000);\n\t}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinstone%2Floghub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdinstone%2Floghub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinstone%2Floghub/lists"}