{"action":"created","issue":{"url":"https://api.github.com/repos/wildfly/wildfly-core/issues/817","labels_url":"https://api.github.com/repos/wildfly/wildfly-core/issues/817/labels{/name}","comments_url":"https://api.github.com/repos/wildfly/wildfly-core/issues/817/comments","events_url":"https://api.github.com/repos/wildfly/wildfly-core/issues/817/events","html_url":"https://github.com/wildfly/wildfly-core/pull/817","id":88871219,"number":817,"title":"[WFCORE-690] Add logging configuration information to deployments. This helps show runtime information for the configuration deployments are using.","user":{"login":"jamezp","id":420065,"avatar_url":"https://avatars.githubusercontent.com/u/420065?v=3","gravatar_id":"","url":"https://api.github.com/users/jamezp","html_url":"https://github.com/jamezp","followers_url":"https://api.github.com/users/jamezp/followers","following_url":"https://api.github.com/users/jamezp/following{/other_user}","gists_url":"https://api.github.com/users/jamezp/gists{/gist_id}","starred_url":"https://api.github.com/users/jamezp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamezp/subscriptions","organizations_url":"https://api.github.com/users/jamezp/orgs","repos_url":"https://api.github.com/users/jamezp/repos","events_url":"https://api.github.com/users/jamezp/events{/privacy}","received_events_url":"https://api.github.com/users/jamezp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-17T00:05:36Z","updated_at":"2015-06-17T16:07:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wildfly/wildfly-core/pulls/817","html_url":"https://github.com/wildfly/wildfly-core/pull/817","diff_url":"https://github.com/wildfly/wildfly-core/pull/817.diff","patch_url":"https://github.com/wildfly/wildfly-core/pull/817.patch"},"body":"Adds a runtime resource to a deployment in an attempt to display the logging configuration a deployment is using. Note that the resulting configuration may not be used on deployments that provide their own log manager, such as deployments that use logback. The resource displayed for these deployments will likely be the `default` resource.\r\n\r\nExample:\r\n```\r\n        {\r\n            \"address\" => [\r\n                (\"deployment\" => \"ear.ear\"),\r\n                (\"subdeployment\" => \"logging-profile.war\"),\r\n                (\"subsystem\" => \"logging\")\r\n            ],\r\n            \"outcome\" => \"success\",\r\n            \"result\" => {\"configuration\" => {\"/content/ear.ear/META-INF/logging.properties\" => {\r\n                \"error-manager\" => undefined,\r\n                \"filter\" => undefined,\r\n                \"formatter\" => {\"PATTERN\" => {\r\n                    \"class-name\" => \"org.jboss.logmanager.formatters.PatternFormatter\",\r\n                    \"module\" => undefined,\r\n                    \"properties\" => {\"pattern\" => \"[DEPLOYMENT] %d{HH:mm:ss,SSS} %-5p [%c] %s%e%n\"}\r\n                }},\r\n                \"handler\" => {\"CONSOLE\" => {\r\n                    \"class-name\" => \"org.jboss.logmanager.handlers.FileHandler\",\r\n                    \"encoding\" => undefined,\r\n                    \"error-manager\" => undefined,\r\n                    \"filter\" => undefined,\r\n                    \"formatter\" => \"PATTERN\",\r\n                    \"handlers\" => [],\r\n                    \"level\" => \"INFO\",\r\n                    \"module\" => undefined,\r\n                    \"properties\" => {\r\n                        \"autoFlush\" => \"true\",\r\n                        \"append\" => \"false\",\r\n                        \"fileName\" => \"/home/jperkins/projects/jboss/wildfly/wildfly/build/target/wildfly-10.0.0.Alpha3-SNAPSHOT/standalone/log/test.log\"\r\n                    }\r\n                }},\r\n                \"logger\" => {\"ROOT\" => {\r\n                    \"filter\" => undefined,\r\n                    \"handlers\" => [\"CONSOLE\"],\r\n                    \"level\" => \"INFO\",\r\n                    \"use-parent-handlers\" => undefined\r\n                }},\r\n                \"pojo\" => undefined\r\n            }}}\r\n        },\r\n        {\r\n            \"address\" => [\r\n                (\"deployment\" => \"ear.ear\"),\r\n                (\"subdeployment\" => \"log4j.war\"),\r\n                (\"subsystem\" => \"logging\")\r\n            ],\r\n            \"outcome\" => \"success\",\r\n            \"result\" => {\"configuration\" => {\"/content/ear.ear/log4j.war/WEB-INF/classes/log4j.properties\" => {\r\n                \"error-manager\" => undefined,\r\n                \"filter\" => undefined,\r\n                \"formatter\" => undefined,\r\n                \"handler\" => undefined,\r\n                \"logger\" => undefined,\r\n                \"pojo\" => undefined\r\n            }}}\r\n        }\r\n```\r\n\r\nIn the above example the deployment, `ear.ear`, has defined a logging-profile. The `logging-profile.war` sub-deployment uses this configuration where as the `log4j.war` uses it's own. \r\n\r\nThe `configuration` value also shows which configuration the deployment, or sub-deployment, is using. The values are \r\n  * `default` if the deployment is using the logging subsystem configuration\r\n  * `profile-$PROFILE_NAME` if the deployment is using a logging profile\r\n  * Or the path the configuration file being used\r\n\r\nIt may make sense to remove the `profile-` prefix but seemed it would be useful at the same time to see which deployments may be using a logging-profiles."},"comment":{"url":"https://api.github.com/repos/wildfly/wildfly-core/issues/comments/112862058","html_url":"https://github.com/wildfly/wildfly-core/pull/817#issuecomment-112862058","issue_url":"https://api.github.com/repos/wildfly/wildfly-core/issues/817","id":112862058,"user":{"login":"wildfly-ci","id":939955,"avatar_url":"https://avatars.githubusercontent.com/u/939955?v=3","gravatar_id":"","url":"https://api.github.com/users/wildfly-ci","html_url":"https://github.com/wildfly-ci","followers_url":"https://api.github.com/users/wildfly-ci/followers","following_url":"https://api.github.com/users/wildfly-ci/following{/other_user}","gists_url":"https://api.github.com/users/wildfly-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/wildfly-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wildfly-ci/subscriptions","organizations_url":"https://api.github.com/users/wildfly-ci/orgs","repos_url":"https://api.github.com/users/wildfly-ci/repos","events_url":"https://api.github.com/users/wildfly-ci/events{/privacy}","received_events_url":"https://api.github.com/users/wildfly-ci/received_events","type":"User","site_admin":false},"created_at":"2015-06-17T16:07:49Z","updated_at":"2015-06-17T16:07:49Z","body":"**Linux** [Build 1996](http://brontes.lab.eng.brq.redhat.com/viewLog.html?buildId=57325&buildTypeId=WildFlyCore_PullRequest) is now running using a merge of be2e0c4ec23041d86933ccd4f172163e65be9509\n"}}