Skip to content

Commit

Permalink
[WEJHBTTP-TODO] Add logging properties to enable loggings for all tes…
Browse files Browse the repository at this point in the history
…ts (TODO: review what we really want to be logged for the tests)

Signed-off-by: Flavia Rainone <[email protected]>
  • Loading branch information
fl4via committed Aug 1, 2023
1 parent ddcfd12 commit 51fcea0
Show file tree
Hide file tree
Showing 4 changed files with 200 additions and 0 deletions.
50 changes: 50 additions & 0 deletions common/src/test/resources/logging.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@

#
# JBoss, Home of Professional Open Source.
# Copyright 2012 Red Hat, Inc., and individual contributors
# as indicated by the @author tags.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# Additional logger names to configure (root logger is always configured)
loggers=org.xnio.listener,org.xnio.ssl,org.apache,io.undertow.util.TestHttpClient,io.undertow.server.handlers.proxy,io.undertow.request.io,io.undertow.client,io.undertow.request.error-response,io.undertow.request.security

# Root logger configuration
logger.level=${test.level:INFO}
logger.handlers=CONSOLE

# Console handler configuration
handler.CONSOLE=org.jboss.logmanager.handlers.ConsoleHandler
handler.CONSOLE.properties=autoFlush,target
handler.CONSOLE.target=SYSTEM_ERR
handler.CONSOLE.level=ALL
handler.CONSOLE.autoFlush=true
handler.CONSOLE.formatter=PATTERN

# The log format pattern
formatter.PATTERN=org.jboss.logmanager.formatters.PatternFormatter
formatter.PATTERN.properties=pattern
formatter.PATTERN.pattern=%d{HH:mm:ss,SSS} %-5p (%t) [%c] <%F:%L> %m%n

logger.org.xnio.listener.level=DEBUG

logger.org.xnio.ssl.level=DEBUG
logger.io.undertow.request.io.level=DEBUG
logger.org.apache.level=WARN
logger.org.apache.useParentHandlers=false
logger.io.undertow.util.TestHttpClient.level=WARN
logger.io.undertow.server.handlers.proxy.level=DEBUG
logger.io.undertow.client.level=DEBUG
logger.io.undertow.request.error-response.level=DEBUG
logger.io.undertow.request.security.level=DEBUG
50 changes: 50 additions & 0 deletions ejb/src/test/resources/logging.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@

#
# JBoss, Home of Professional Open Source.
# Copyright 2012 Red Hat, Inc., and individual contributors
# as indicated by the @author tags.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# Additional logger names to configure (root logger is always configured)
loggers=org.xnio.listener,org.xnio.ssl,org.apache,io.undertow.util.TestHttpClient,io.undertow.server.handlers.proxy,io.undertow.request.io,io.undertow.client,io.undertow.request.error-response,io.undertow.request.security

# Root logger configuration
logger.level=${test.level:INFO}
logger.handlers=CONSOLE

# Console handler configuration
handler.CONSOLE=org.jboss.logmanager.handlers.ConsoleHandler
handler.CONSOLE.properties=autoFlush,target
handler.CONSOLE.target=SYSTEM_ERR
handler.CONSOLE.level=ALL
handler.CONSOLE.autoFlush=true
handler.CONSOLE.formatter=PATTERN

# The log format pattern
formatter.PATTERN=org.jboss.logmanager.formatters.PatternFormatter
formatter.PATTERN.properties=pattern
formatter.PATTERN.pattern=%d{HH:mm:ss,SSS} %-5p (%t) [%c] <%F:%L> %m%n

logger.org.xnio.listener.level=DEBUG

logger.org.xnio.ssl.level=DEBUG
logger.io.undertow.request.io.level=DEBUG
logger.org.apache.level=WARN
logger.org.apache.useParentHandlers=false
logger.io.undertow.util.TestHttpClient.level=WARN
logger.io.undertow.server.handlers.proxy.level=DEBUG
logger.io.undertow.client.level=DEBUG
logger.io.undertow.request.error-response.level=DEBUG
logger.io.undertow.request.security.level=DEBUG
50 changes: 50 additions & 0 deletions naming/src/test/resources/logging.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@

#
# JBoss, Home of Professional Open Source.
# Copyright 2012 Red Hat, Inc., and individual contributors
# as indicated by the @author tags.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# Additional logger names to configure (root logger is always configured)
loggers=org.xnio.listener,org.xnio.ssl,org.apache,io.undertow.util.TestHttpClient,io.undertow.server.handlers.proxy,io.undertow.request.io,io.undertow.client,io.undertow.request.error-response,io.undertow.request.security

# Root logger configuration
logger.level=${test.level:INFO}
logger.handlers=CONSOLE

# Console handler configuration
handler.CONSOLE=org.jboss.logmanager.handlers.ConsoleHandler
handler.CONSOLE.properties=autoFlush,target
handler.CONSOLE.target=SYSTEM_ERR
handler.CONSOLE.level=ALL
handler.CONSOLE.autoFlush=true
handler.CONSOLE.formatter=PATTERN

# The log format pattern
formatter.PATTERN=org.jboss.logmanager.formatters.PatternFormatter
formatter.PATTERN.properties=pattern
formatter.PATTERN.pattern=%d{HH:mm:ss,SSS} %-5p (%t) [%c] <%F:%L> %m%n

logger.org.xnio.listener.level=DEBUG

logger.org.xnio.ssl.level=DEBUG
logger.io.undertow.request.io.level=DEBUG
logger.org.apache.level=WARN
logger.org.apache.useParentHandlers=false
logger.io.undertow.util.TestHttpClient.level=WARN
logger.io.undertow.server.handlers.proxy.level=DEBUG
logger.io.undertow.client.level=DEBUG
logger.io.undertow.request.error-response.level=DEBUG
logger.io.undertow.request.security.level=DEBUG
50 changes: 50 additions & 0 deletions transaction/src/test/resources/logging.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@

#
# JBoss, Home of Professional Open Source.
# Copyright 2012 Red Hat, Inc., and individual contributors
# as indicated by the @author tags.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# Additional logger names to configure (root logger is always configured)
loggers=org.xnio.listener,org.xnio.ssl,org.apache,io.undertow.util.TestHttpClient,io.undertow.server.handlers.proxy,io.undertow.request.io,io.undertow.client,io.undertow.request.error-response,io.undertow.request.security

# Root logger configuration
logger.level=${test.level:INFO}
logger.handlers=CONSOLE

# Console handler configuration
handler.CONSOLE=org.jboss.logmanager.handlers.ConsoleHandler
handler.CONSOLE.properties=autoFlush,target
handler.CONSOLE.target=SYSTEM_ERR
handler.CONSOLE.level=ALL
handler.CONSOLE.autoFlush=true
handler.CONSOLE.formatter=PATTERN

# The log format pattern
formatter.PATTERN=org.jboss.logmanager.formatters.PatternFormatter
formatter.PATTERN.properties=pattern
formatter.PATTERN.pattern=%d{HH:mm:ss,SSS} %-5p (%t) [%c] <%F:%L> %m%n

logger.org.xnio.listener.level=DEBUG

logger.org.xnio.ssl.level=DEBUG
logger.io.undertow.request.io.level=DEBUG
logger.org.apache.level=WARN
logger.org.apache.useParentHandlers=false
logger.io.undertow.util.TestHttpClient.level=WARN
logger.io.undertow.server.handlers.proxy.level=DEBUG
logger.io.undertow.client.level=DEBUG
logger.io.undertow.request.error-response.level=DEBUG
logger.io.undertow.request.security.level=DEBUG

0 comments on commit 51fcea0

Please sign in to comment.