[ 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-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-dev-h...@logging.apache.org