{"action":"created","issue":{"url":"https://api.github.com/repos/junit-team/junit5/issues/1295","repository_url":"https://api.github.com/repos/junit-team/junit5","labels_url":"https://api.github.com/repos/junit-team/junit5/issues/1295/labels{/name}","comments_url":"https://api.github.com/repos/junit-team/junit5/issues/1295/comments","events_url":"https://api.github.com/repos/junit-team/junit5/issues/1295/events","html_url":"https://github.com/junit-team/junit5/issues/1295","id":297131421,"number":1295,"title":"How to use slf4 in gradle as logger","user":{"login":"childnode","id":192814,"avatar_url":"https://avatars1.githubusercontent.com/u/192814?v=4","gravatar_id":"","url":"https://api.github.com/users/childnode","html_url":"https://github.com/childnode","followers_url":"https://api.github.com/users/childnode/followers","following_url":"https://api.github.com/users/childnode/following{/other_user}","gists_url":"https://api.github.com/users/childnode/gists{/gist_id}","starred_url":"https://api.github.com/users/childnode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/childnode/subscriptions","organizations_url":"https://api.github.com/users/childnode/orgs","repos_url":"https://api.github.com/users/childnode/repos","events_url":"https://api.github.com/users/childnode/events{/privacy}","received_events_url":"https://api.github.com/users/childnode/received_events","type":"User","site_admin":false},"labels":[{"id":629660080,"url":"https://api.github.com/repos/junit-team/junit5/labels/component:%20Gradle","name":"component: Gradle","color":"c2e0c6","default":false},{"id":420912036,"url":"https://api.github.com/repos/junit-team/junit5/labels/component:%20Platform","name":"component: Platform","color":"11dd99","default":false},{"id":165165179,"url":"https://api.github.com/repos/junit-team/junit5/labels/status:%20duplicate","name":"status: duplicate","color":"dfdfdf","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-14T15:13:07Z","updated_at":"2018-02-14T16:28:56Z","closed_at":"2018-02-14T16:23:43Z","author_association":"NONE","body":"https://junit.org/junit5/docs/current/user-guide/#running-tests-build-gradle-junit-configure\r\nonly shows up to use jul to log4j ... but gradle typically logs via slf4\r\n\r\nrelated to / tried to workaround https://github.com/junit-team/junit5/issues/1166\r\n\r\n```\r\nplugins {\r\n    id \"java-gradle-plugin\"\r\n    // see https://github.com/junit-team/junit5/issues/768\r\n    id(\"org.junit.platform.gradle.plugin\") version '1.0.3'\r\n}\r\n\r\nbuildscript {\r\n  dependencies {\r\n    // classpath 'org.apache.logging.log4j:log4j-core:2.10.0'\r\n    classpath 'org.apache.logging.log4j:log4j-jul:2.10.0'\r\n    classpath 'org.slf4j:log4j-over-slf4j:1.7.25'\r\n  }\r\n}\r\n\r\njunitPlatform {\r\n    logManager 'org.apache.logging.log4j.jul.LogManager'\r\n}\r\n```\r\n\r\nstill ends up in \r\n`ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...`\r\n\r\nwhen adding `logback-classic` we get an additional\r\n```\r\nSLF4J: Class path contains multiple SLF4J bindings.\r\nSLF4J: Found binding in [jar:file:/home/marcel/.gradle/caches/4.5/generated-gradle-jars/gradle-api-4.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]\r\nSLF4J: Found binding in [jar:file:/home/marcel/.gradle/caches/modules-2/files-2.1/ch.qos.logback/logback-classic/1.2.3/7c4f3c474fb2c041d8028740440937705ebb473a/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]\r\nSLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.\r\nSLF4J: Actual binding is of type [org.gradle.internal.logging.slf4j.OutputEventListenerBackedLoggerContext]\r\n\r\n```\r\n\r\nI admit: this logging stuff is a way brainfucked ... or I am :D"},"comment":{"url":"https://api.github.com/repos/junit-team/junit5/issues/comments/365662988","html_url":"https://github.com/junit-team/junit5/issues/1295#issuecomment-365662988","issue_url":"https://api.github.com/repos/junit-team/junit5/issues/1295","id":365662988,"user":{"login":"childnode","id":192814,"avatar_url":"https://avatars1.githubusercontent.com/u/192814?v=4","gravatar_id":"","url":"https://api.github.com/users/childnode","html_url":"https://github.com/childnode","followers_url":"https://api.github.com/users/childnode/followers","following_url":"https://api.github.com/users/childnode/following{/other_user}","gists_url":"https://api.github.com/users/childnode/gists{/gist_id}","starred_url":"https://api.github.com/users/childnode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/childnode/subscriptions","organizations_url":"https://api.github.com/users/childnode/orgs","repos_url":"https://api.github.com/users/childnode/repos","events_url":"https://api.github.com/users/childnode/events{/privacy}","received_events_url":"https://api.github.com/users/childnode/received_events","type":"User","site_admin":false},"created_at":"2018-02-14T16:28:56Z","updated_at":"2018-02-14T16:28:56Z","author_association":"NONE","body":"thx @sbrannen for pointing out #1274 "}}
{"actor":{"display_login":"childnode"}}