[arquillian-issues] [JBoss JIRA] Commented: (ARQAJO-67) Reduce logging levels

Karel Piwko (JIRA) jira-events at lists.jboss.org
Wed Aug 31 10:57:26 EDT 2011


    [ https://issues.jboss.org/browse/ARQAJO-67?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12625475#comment-12625475 ] 

Karel Piwko commented on ARQAJO-67:
-----------------------------------

This is logged automatically by Selenium, so nothing can be done on Ajocado site. 

I think the proper solution is to split the logging in a following way:

{code}
# Specify the handlers to create in the root logger
# (all loggers are children of the root logger)
# The following creates two handlers
handlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandler

# Set the default logging level for new ConsoleHandler instances
java.util.logging.ConsoleHandler.level= WARNING
java.util.logging.ConsoleHandler.formatter= java.util.logging.SimpleFormatter

# Set the default logging level for new FileHandler instances
java.util.logging.FileHandler.level= FINE
java.util.logging.FileHandler.pattern = target/jul-fine.log
java.util.logging.FileHandler.formatter= java.util.logging.SimpleFormatter
{code}

And then for Surefire execution, you have to specify:

{code:xml}
<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.9</version>
                <configuration>
                    <testFailureIgnore>true</testFailureIgnore>
                    <!-- Logging configuration for Selenium -->
                    <argLine>-Djava.util.logging.config.file=${build.testOutputDirectory}/logging.properties</argLine>
                    <systemPropertyVariables>
                    </systemPropertyVariables>
                </configuration>
            </plugin>
{code}


> Reduce logging levels
> ---------------------
>
>                 Key: ARQAJO-67
>                 URL: https://issues.jboss.org/browse/ARQAJO-67
>             Project: Arquillian Ajocado
>          Issue Type: Feature Request
>          Components: junit, testng
>    Affects Versions: 1.0.0.Alpha2
>            Reporter: Karel Piwko
>            Assignee: Lukáš Fryč
>             Fix For: 1.0.0.CR2
>
>
> Ajocado outputs many debug information under INFO logging level. This level should be reduced to debug or even debug/fine.
> It makes execution of the test slower and this information is not required until debugging. 
> It manifest namely with JUnit which redirects test output to console.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the arquillian-issues mailing list