Class LoggingDrain
java.lang.Object
de.hybris.platform.mediaconversion.imagemagick.LoggingDrain
- All Implemented Interfaces:
Drain
Drain implementation delegating all consumed lines to a Log4J Logger.-
Constructor Summary
ConstructorsConstructorDescriptionLoggingDrain(Class<?> clazz, org.apache.log4j.Level level) LoggingDrain(String name, org.apache.log4j.Level level) LoggingDrain(org.apache.log4j.Logger logger, org.apache.log4j.Level level) -
Method Summary
-
Constructor Details
-
LoggingDrain
- Parameters:
clazz- the logger name to use.level- the log level to use.
-
LoggingDrain
- Parameters:
name- the name of theLoggerto use.level- the log level to use.
-
LoggingDrain
public LoggingDrain(org.apache.log4j.Logger logger, org.apache.log4j.Level level) - Parameters:
logger- theLoggerto log tolevel- theLevelto log on
-
-
Method Details
-
drain
Callback method to process a line outputted by the process. A trailing newline character is truncated. -
getLogger
public org.apache.log4j.Logger getLogger() -
getLevel
public org.apache.log4j.Level getLevel()
-