NIFI-5777: Update the log-level property of LogMessage to support EL

This closes #3122.

Signed-off-by: Koji Kawamura <ijokarumawak@apache.org>
This commit is contained in:
Kotaro Terada 2018-11-06 14:26:50 +09:00 committed by Koji Kawamura
parent aabb5d7832
commit 0c9120a73f
1 changed files with 3 additions and 2 deletions

View File

@ -37,6 +37,7 @@ import org.apache.nifi.processor.util.StandardValidators;
import org.eclipse.jetty.util.StringUtil;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
@ -54,8 +55,8 @@ public class LogMessage extends AbstractProcessor {
.name("log-level")
.displayName("Log Level")
.required(true)
.description("The Log Level to use when logging the message")
.allowableValues(MessageLogLevel.values())
.description("The Log Level to use when logging the message: " + Arrays.toString(MessageLogLevel.values()))
.addValidator(StandardValidators.NON_EMPTY_VALIDATOR)
.defaultValue(MessageLogLevel.info.toString())
.expressionLanguageSupported(ExpressionLanguageScope.FLOWFILE_ATTRIBUTES)
.build();