You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Matt Sicker (JIRA)" <ji...@apache.org> on 2014/03/26 04:59:18 UTC
[jira] [Resolved] (LOG4J2-497) Create Log4j config JUnit rule.
[ https://issues.apache.org/jira/browse/LOG4J2-497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Sicker resolved LOG4J2-497.
--------------------------------
Resolution: Implemented
Fix Version/s: 2.0-rc2
Just added as {{InitialLoggerContext}}. It constructs a {{LoggerContext}} using {{Configurator}}. This is primarily a convenience rule wrapper for said class as this method is a lot simpler to use than setting system properties and creating new LoggerContexts using LogManager.
> Create Log4j config JUnit rule.
> -------------------------------
>
> Key: LOG4J2-497
> URL: https://issues.apache.org/jira/browse/LOG4J2-497
> Project: Log4j 2
> Issue Type: Sub-task
> Components: Core
> Affects Versions: 2.0-rc1
> Reporter: Matt Sicker
> Assignee: Matt Sicker
> Labels: JUnit, Testing
> Fix For: 2.0-rc2
>
> Attachments: 0001-Add-config-file-JUnit-rules.patch
>
>
> This should be a TestRule implementation that sets the proper system property and configurates the configuration from the specified config file. It can be used as either a class rule or test rule using {{@ClassRule}} or {{@Rule}} respectively.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org