{"id":16538791,"url":"https://github.com/sbabcoc/logback-testng","last_synced_at":"2025-10-28T14:31:10.095Z","repository":{"id":15789427,"uuid":"78768240","full_name":"sbabcoc/logback-testng","owner":"sbabcoc","description":"Logback appender for TestNG Reporter","archived":false,"fork":false,"pushed_at":"2023-05-09T19:01:11.000Z","size":73,"stargazers_count":10,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2023-08-25T02:38:12.178Z","etag":null,"topics":["logback-appender","testng","testng-reporter"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sbabcoc.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}},"created_at":"2017-01-12T17:13:44.000Z","updated_at":"2022-10-04T21:29:50.000Z","dependencies_parsed_at":"2022-08-29T22:50:16.400Z","dependency_job_id":null,"html_url":"https://github.com/sbabcoc/logback-testng","commit_stats":null,"previous_names":[],"tags_count":14,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbabcoc%2Flogback-testng","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbabcoc%2Flogback-testng/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbabcoc%2Flogback-testng/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbabcoc%2Flogback-testng/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sbabcoc","download_url":"https://codeload.github.com/sbabcoc/logback-testng/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219859478,"owners_count":16556036,"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":["logback-appender","testng","testng-reporter"],"created_at":"2024-10-11T18:46:49.977Z","updated_at":"2025-10-28T14:31:10.089Z","avatar_url":"https://github.com/sbabcoc.png","language":"Java","readme":"[![Maven Central](https://img.shields.io/maven-central/v/com.github.sbabcoc/logback-testng.svg)](https://mvnrepository.com/artifact/com.github.sbabcoc/logback-testng)\n\n# logback-testng\nLogback appender for TestNG Reporter\n\nThis appender enables users to direct the Logback output from TestNG tests to the TestNG Reporter. This output will be captured in the test result artifacts of each test method. This appender extends the standard [OutputStreamAppender](http://logback.qos.ch/manual/appenders.html#OutputStreamAppender), providing the full range of encoding options.\n\n**NOTE**: Although the `ReporterAppender` class extends [OutputStreamAppender](http://logback.qos.ch/apidocs/ch/qos/logback/core/OutputStreamAppender.html), selection of a target output stream is not supported. Output from this appender is always directed to a `ReporterOutputStream`, which emits its contents to the TestNG [Reporter](http://testng.org/javadocs/org/testng/Reporter.html).\n\n## Full configuration example\n\nAdd `logback-testng` and `logback-classic` as library dependencies to your project.\n\n```xml\n[maven pom.xml]\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.sbabcoc\u003c/groupId\u003e\n    \u003cartifactId\u003elogback-testng\u003c/artifactId\u003e\n    \u003cversion\u003e2.1.0\u003c/version\u003e\n    \u003cscope\u003eruntime\u003c/scope\u003e\n\u003c/dependency\u003e\n\u003cdependency\u003e\n    \u003cgroupId\u003ech.qos.logback\u003c/groupId\u003e\n    \u003cartifactId\u003elogback-classic\u003c/artifactId\u003e\n    \u003cversion\u003e1.5.13\u003c/version\u003e\n    \u003cscope\u003eruntime\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n\nThis is an example `logback.xml` that uses a common `PatternLayout` to encode a log message as a string.\n\n```xml\n[src/main/resources/logback.xml]\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cconfiguration\u003e\n    \u003cappender name=\"STDOUT\" class=\"ch.qos.logback.core.ConsoleAppender\"\u003e\n        \u003cencoder\u003e\n            \u003cpattern\u003e%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n\u003c/pattern\u003e\n        \u003c/encoder\u003e\n    \u003c/appender\u003e\n\n    \u003c!-- This is the ReporterAppender --\u003e\n    \u003cappender name=\"TestNG\" class=\"com.github.sbabcoc.logback.testng.ReporterAppender\"\u003e\n        \u003cencoder\u003e\n            \u003cpattern\u003e%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n\u003c/pattern\u003e\n        \u003c/encoder\u003e\n    \u003c/appender\u003e\n\n    \u003croot level=\"info\"\u003e\n        \u003cappender-ref ref=\"STDOUT\" /\u003e\n        \u003cappender-ref ref=\"TestNG\" /\u003e\n    \u003c/root\u003e\n\u003c/configuration\u003e\n\n```\n\nYou may also look at the [complete configuration examples](src/test/resources/logback.xml)\n\n## License\n\nThis project is licensed under the [Apache License Version 2.0](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbabcoc%2Flogback-testng","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbabcoc%2Flogback-testng","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbabcoc%2Flogback-testng/lists"}