{"id":20104164,"url":"https://github.com/testmonkeys/cucumber-spring-logback","last_synced_at":"2026-05-01T22:35:29.018Z","repository":{"id":37857664,"uuid":"304942742","full_name":"TestMonkeys/cucumber-spring-logback","owner":"TestMonkeys","description":"This is a cucumber-jvm, spring and logback integration to provide an appender that will write logs to the cucumber report.","archived":false,"fork":false,"pushed_at":"2023-04-13T13:57:16.000Z","size":186,"stargazers_count":3,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-13T04:43:02.161Z","etag":null,"topics":["cucumber-jvm","cucumber-report","logging","spring","spring-boot"],"latest_commit_sha":null,"homepage":"","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/TestMonkeys.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":"2020-10-17T18:24:32.000Z","updated_at":"2024-07-22T11:14:01.000Z","dependencies_parsed_at":"2024-11-13T17:53:08.029Z","dependency_job_id":null,"html_url":"https://github.com/TestMonkeys/cucumber-spring-logback","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TestMonkeys%2Fcucumber-spring-logback","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TestMonkeys%2Fcucumber-spring-logback/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TestMonkeys%2Fcucumber-spring-logback/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TestMonkeys%2Fcucumber-spring-logback/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TestMonkeys","download_url":"https://codeload.github.com/TestMonkeys/cucumber-spring-logback/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241543615,"owners_count":19979570,"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":["cucumber-jvm","cucumber-report","logging","spring","spring-boot"],"created_at":"2024-11-13T17:41:42.388Z","updated_at":"2026-05-01T22:35:28.969Z","avatar_url":"https://github.com/TestMonkeys.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cucumber-spring-logback\n[![TestMonkeys](https://circleci.com/gh/TestMonkeys/cucumber-spring-logback.svg?style=svg)](https://circleci.com/gh/TestMonkeys/cucumber-spring-logback)\n\nThis is a cucumber-jvm, spring and logback integration to provide an appender that will write logs to the cucumber report. \n\nThis helps make use of logs provided by other libraries, as well as using logs in your tests, customizing the log level wanted in the report.\n\nTo use this you just need to log some information using your logger:\n```\n@When(\"I log a message\")\npublic void logAMessage() {\n  log.info(\"LoggedInformation\");\n}\n```\nAnd this will be automatically added to the output of this step:\n\n![Image of the report](https://github.com/TestMonkeys/cucumber-spring-logback/blob/master/util/CucumberReportSample.PNG)\n\nTo test this project - clone it then run:\n```\nmvn test -Dtest=org.testmonkeys.test.cucumber.spring.logback.TestRunner\n```\nthis will generate the cucumber.json report, then run \n```\nmvn cucumber-reporting:generate\n```\nto generate the masterthought html report in target/report/\n\n\n# integration in your project\nEither copy the classes defined in java/main or use the project packaged\n\nTo tie it to your tests:\n* import the spring configuration class ```org.testmonkeys.cucumber.spring.logback.CucumberSpringLoggingConfiguration.class``` \n* add the ```org.testmonkeys.cucumber.spring.logback``` package to your glue.\n* configure your logback.xml file and define the cucumber appender:\n```\n\u003cconfiguration\u003e\n    \u003cappender name=\"Cucumber\" class=\"org.testmonkeys.cucumber.spring.logback.CucumberScenarioAppender\"/\u003e\n\n    \u003croot leve=\"info\"\u003e\n        \u003cappender-ref ref=\"Cucumber\"/\u003e\n    \u003c/root\u003e\n\u003c/configuration\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestmonkeys%2Fcucumber-spring-logback","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftestmonkeys%2Fcucumber-spring-logback","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestmonkeys%2Fcucumber-spring-logback/lists"}