Class ScriptFile
java.lang.Object
org.apache.logging.log4j.core.script.AbstractScript
org.apache.logging.log4j.core.script.ScriptFile
@Plugin(name="ScriptFile",
category="Core",
printObject=true)
public class ScriptFile
extends AbstractScript
Container for the language and body of a script file along with the file location.
-
Field Summary
Fields inherited from class org.apache.logging.log4j.core.script.AbstractScript
DEFAULT_LANGUAGE, LOGGER
-
Constructor Summary
ConstructorDescriptionScriptFile
(String name, Path filePath, String language, boolean isWatched, String scriptText) -
Method Summary
Methods inherited from class org.apache.logging.log4j.core.script.AbstractScript
getLanguage, getName, getScriptText
-
Constructor Details
-
ScriptFile
-
-
Method Details
-
getPath
-
isWatched
public boolean isWatched() -
createScript
@PluginFactory public static ScriptFile createScript(@PluginAttribute("name") String name, @PluginAttribute("language") String language, @PluginAttribute("path") String filePathOrUri, @PluginAttribute("isWatched") Boolean isWatched, @PluginAttribute("charset") Charset charset) -
toString
-