{"id":16375742,"url":"https://github.com/scarsz/jdaappender","last_synced_at":"2025-07-07T01:07:12.076Z","repository":{"id":40448303,"uuid":"393008957","full_name":"Scarsz/JDAAppender","owner":"Scarsz","description":"Library for Java applications that use JDA to easily stream the logging output to a text channel on Discord","archived":false,"fork":false,"pushed_at":"2024-10-07T01:59:14.000Z","size":174,"stargazers_count":7,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-11T03:22:09.320Z","etag":null,"topics":["java","jda","jda-utilities"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Scarsz.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":"2021-08-05T11:01:18.000Z","updated_at":"2024-10-07T01:58:40.000Z","dependencies_parsed_at":"2023-12-19T16:32:03.454Z","dependency_job_id":"f06037ec-caa7-4e0d-80cc-b139af59f81d","html_url":"https://github.com/Scarsz/JDAAppender","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Scarsz/JDAAppender","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scarsz%2FJDAAppender","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scarsz%2FJDAAppender/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scarsz%2FJDAAppender/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scarsz%2FJDAAppender/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Scarsz","download_url":"https://codeload.github.com/Scarsz/JDAAppender/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scarsz%2FJDAAppender/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263996082,"owners_count":23541400,"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":["java","jda","jda-utilities"],"created_at":"2024-10-11T03:21:58.583Z","updated_at":"2025-07-07T01:07:12.058Z","avatar_url":"https://github.com/Scarsz.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JDA Appender\nLibrary for Java applications that use [JDA](https://github.com/DV8FromTheWorld/JDA) to easily stream\nthe logging output of the application to a text channel on Discord.\n\n[insert screenshot here]\n\n# Usage\nUsing default values:\n\n```java\nChannelLoggingHandler handler = new ChannelLoggingHandler(() -\u003e jda.getTextChannelById(System.getenv(\"CHANNEL\")))\n        .attach() // attach to SLF4J JDK logging if present, else Log4j if present, else standard out/err\n        .schedule(); // schedule handler to flush output asynchronously every 1.5 seconds\n```\n\nCustomizing config values, such as adding a logger name mapping:\n\n```java\nChannelLoggingHandler handler = new ChannelLoggingHandler(() -\u003e jda.getTextChannelById(System.getenv(\"CHANNEL\")), config -\u003e {\n    config.setColored(true); // enable coloring of different log levels, default true\n    config.setSplitCodeBlockForLinks(false); // split the output code blocks when a link is present, default false\n    config.setAllowLinkEmbeds(true); // when splitting code blocks for links, allow the links to have an embed, default true\n    config.mapLoggerName(\"net.dv8tion.jda\", \"JDA\"); // add a mapping for logger names \"net.dv8tion.jda*\" to just be \"JDA\"\n}).attach().schedule();\n```\n\n# Artifact\n```xml\n\u003crepository\u003e\n    \u003cid\u003escarsz\u003c/id\u003e\n    \u003curl\u003ehttps://nexus.scarsz.me/content/repositories/releases/\u003c/url\u003e\n\u003c/repository\u003e\n```\n```xml\n\u003c!-- JDA 5 --\u003e\n\u003cdependency\u003e\n    \u003cgroupId\u003eme.scarsz.jdaappender\u003c/groupId\u003e\n    \u003cartifactId\u003ejda5\u003c/artifactId\u003e\n    \u003cversion\u003e1.2.3\u003c/version\u003e\n\u003c/dependency\u003e\n\n    or\n\n\u003c!-- JDA 4 --\u003e\n\u003cdependency\u003e\n    \u003cgroupId\u003eme.scarsz.jdaappender\u003c/groupId\u003e\n    \u003cartifactId\u003ejda4\u003c/artifactId\u003e\n    \u003cversion\u003e1.2.3\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n# Using with SLF4J-backed apps with minimal effort (JDA, ...)\n\nUse `slf4j-jdk14` as your SLF4J logging backend. This will forward SLF4J messages to java.util.logging and can be\npicked up by JDAAppender with `ChannelLoggingHandler#attachJavaLogging`.\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.slf4j\u003c/groupId\u003e\n    \u003cartifactId\u003eslf4j-jdk14\u003c/artifactId\u003e\n    \u003cversion\u003e1.7.31\u003c/version\u003e\n\u003c/dependency\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscarsz%2Fjdaappender","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscarsz%2Fjdaappender","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscarsz%2Fjdaappender/lists"}