com.janosgats.logging.flexibleappender.enableable.CompositeOrEnableable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flexible-appender Show documentation
Show all versions of flexible-appender Show documentation
A convenient and customizable appender library for log4j.
package com.janosgats.logging.flexibleappender.enableable;
/**
* Execute multiple enablers with a logical OR by using this enabler!
*
* Feel free to override one of these Enableables to create your own!
*/
public class CompositeOrEnableable extends CompositeEnableable {
@Override
public boolean isEnabled() {
for (AbstractEnableable enableable : abstractEnableables) {
if (enableable.isEnabled())
return true;
}
return false;
}
}