Search in sources :

Example 1 with BasicConfigurationFactory

use of org.apache.logging.log4j.core.BasicConfigurationFactory in project logging-log4j2 by apache.

the class DeleteActionTest method create.

private static DeleteAction create(final String path, final boolean followLinks, final int maxDepth, final boolean testMode, final PathCondition[] conditions) {
    final Configuration config = new BasicConfigurationFactory().new BasicConfiguration();
    final DeleteAction delete = DeleteAction.createDeleteAction(path, followLinks, maxDepth, testMode, null, conditions, null, config);
    return delete;
}
Also used : Configuration(org.apache.logging.log4j.core.config.Configuration) DeleteAction(org.apache.logging.log4j.core.appender.rolling.action.DeleteAction) BasicConfigurationFactory(org.apache.logging.log4j.core.BasicConfigurationFactory)

Aggregations

BasicConfigurationFactory (org.apache.logging.log4j.core.BasicConfigurationFactory)1 DeleteAction (org.apache.logging.log4j.core.appender.rolling.action.DeleteAction)1 Configuration (org.apache.logging.log4j.core.config.Configuration)1