lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Woodward (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-9500) Add a @LogLevel attribute to change log levels on tests
Date Sun, 11 Sep 2016 20:18:20 GMT

     [ https://issues.apache.org/jira/browse/SOLR-9500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alan Woodward updated SOLR-9500:
--------------------------------
    Attachment: SOLR-9500.patch

This patch adds a LogLevel annotation that can be added to any test class or method on a class
that extends SolrTestCaseJ4.  Configuration looks like this:

{code}
@LogLevel("org.apache.solr=WARN;org.apache.solr.core.CoreContainer=DEBUG")
{code}

The original log levels for any Loggers changed by this annotation are recorded and then reset
once the method or test class has finished executing.

> Add a @LogLevel attribute to change log levels on tests
> -------------------------------------------------------
>
>                 Key: SOLR-9500
>                 URL: https://issues.apache.org/jira/browse/SOLR-9500
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Tests
>            Reporter: Alan Woodward
>            Assignee: Alan Woodward
>         Attachments: SOLR-9500.patch
>
>
> It would be useful to be able to set log levels to higher granularity for specific tests
by adding an annotation to the test class or method, rather than having to muck around with
log4j properties files.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message