public class Log extends TransformationUtility<Log>
TUExecutionResult.Type.NULL
as result of
execution.
UTILITY_NAME_SYNTAX
Constructor and Description |
---|
Log()
Utility to provide logging statements during transformation time.
|
Modifier and Type | Method and Description |
---|---|
protected TUExecutionResult |
execution(java.io.File transformedAppFolder,
TransformationContext transformationContext)
The implementation execution of this transformation utility.
|
java.lang.String[] |
getAttributeNames()
Returns a copy of the array containing
all attribute names used by this Log transformation utility.
|
java.lang.String |
getDescription()
Returns a short one line, but SPECIFIC, description about the transformation
utility, including mentioning the files and/or folders
to be manipulated.
|
org.slf4j.event.Level |
getLogLevel()
Returns the log level
|
java.lang.String |
getLogMessage()
Returns the log message
|
Log |
setAttributeNames(java.lang.String... attributeNames)
Sets names of transformation context attributes to be used
as arguments for this log statement
|
Log |
setLogLevel(org.slf4j.event.Level logLevel)
Sets the log level
|
Log |
setLogMessage(java.lang.String logMessage)
Sets the log message
|
abortOnFailure, abortOnFailure, absolute, absolute, applyPropertiesFromContext, checkDependencies, checkForBlankString, checkForEmptyString, checkForNull, clone, copy, dependsOn, equals, executeIf, executeIf, executeUnless, getAbortionMessage, getAbsoluteFile, getContextAttributeName, getDependencies, getIfConditionAttributeName, getName, getOrder, getParent, getRelativePath, getRelativePath, getSimpleClassName, getTransformationTemplate, getUnlessConditionAttributeName, hasBeenPerformed, hashCode, hashCode, isAbortOnFailure, isFileSet, isSaveResult, normalizeRelativePathSeparator, perform, relative, set, setContextAttributeName, setName, setParent, setSaveResult, toString, wasFileExplicitlySet
public Log()
public Log setLogLevel(org.slf4j.event.Level logLevel)
logLevel
- log levelpublic Log setLogMessage(java.lang.String logMessage)
logMessage
- log messagepublic org.slf4j.event.Level getLogLevel()
public java.lang.String getLogMessage()
public java.lang.String[] getAttributeNames()
null
if there are no attributes.public Log setAttributeNames(java.lang.String... attributeNames)
attributeNames
- names of transformation context attributes to be
used as arguments for this log statementpublic java.lang.String getDescription()
TransformationUtility
getDescription
in class TransformationUtility<Log>
protected TUExecutionResult execution(java.io.File transformedAppFolder, TransformationContext transformationContext)
TransformationUtility
TransformationUtility.isSaveResult()
returns false.
ExecutionResult
error object.execution
in class TransformationUtility<Log>
transformedAppFolder
- the folder where the transformed application code istransformationContext
- the transformation context object