Class CreateOutputStreamAppenderTask
- java.lang.Object
-
- com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
-
- com.opencloud.slee.mlet.ant.tasks.CreateGenericComponentTask
-
- com.opencloud.slee.mlet.ant.tasks.CreateAppenderTask
-
- com.opencloud.slee.mlet.ant.tasks.CreateOutputStreamAppenderTask
-
- All Implemented Interfaces:
SubTask
- Direct Known Subclasses:
CreateFileAppenderTask
,CreateSocketAppenderTask
,CreateSyslogAppenderTask
public abstract class CreateOutputStreamAppenderTask extends CreateAppenderTask
Abstract base class for all sub tasks that create logging appenders that write to an output stream.
Ant Parameters Attribute Type Description Required appendername
String
Name of the appender to create. This name must be unique.
Yes.
ignoreexceptions
boolean
The default is
true
, causing exceptions encountered while appending events to be internally logged and then ignored. When set tofalse
, exceptions will be propagated to the caller instead.No.
immediateflush
boolean
When set to
true
, each write will be followed by a flush. This will guarantee the data is written to the underlying output stream but could impact performance.No.
failonerror
boolean
Flag to control failure behaviour. If
true
, the sub task will throw aBuildException
when an error is encountered. Iffalse
, the sub task will throw aNonFatalBuildException
instead of aBuildException
under specific circumstances. See below for conditions (if any) which will cause aNonFatalBuildException
.No. Default value is taken from the Rhino management parent task.
NonFatalBuildException throw conditions-
Implementation dependent.
-
-
Field Summary
-
Fields inherited from class com.opencloud.slee.mlet.ant.tasks.CreateAppenderTask
appenderName
-
Fields inherited from class com.opencloud.slee.mlet.ant.tasks.CreateGenericComponentTask
components, properties
-
Fields inherited from class com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
client, failOnError
-
-
Constructor Summary
Constructors Constructor Description CreateOutputStreamAppenderTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setImmediateFlush(boolean immediateFlush)
-
Methods inherited from class com.opencloud.slee.mlet.ant.tasks.CreateAppenderTask
execute, setAppenderName, setIgnoreExceptions, validateParameters
-
Methods inherited from class com.opencloud.slee.mlet.ant.tasks.CreateGenericComponentTask
addComponent, addPropertyNotNull, addPropertySet, allTrue, buildGenericComponentData, expandPropertySets, getComponents, getPluginname, getPropertiesArray, setPluginname, setProperties, validateHasProperty
-
Methods inherited from class com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
getExceptionAndMessage, getFailOnError, getMessage, getOverrideFailOnError, getParent, getProject, log, run, setFailOnError
-
-