lucene-dev mailing list archives

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


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:


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:
>             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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message