Apache log4cxx
Version 0.11.0
|
A string based interface to configure package components. More...
Public Member Functions | |
virtual | ~OptionHandler () |
virtual void | activateOptions (log4cxx::helpers::Pool &p)=0 |
Activate the options that were previously set with calls to option setters. More... | |
virtual void | setOption (const LogString &option, const LogString &value)=0 |
Set option to value . More... | |
Public Member Functions inherited from Object | |
virtual const helpers::Class & | getClass () const |
virtual | ~Object () |
virtual void | addRef () const =0 |
virtual void | releaseRef () const =0 |
virtual bool | instanceof (const Class &clazz) const =0 |
virtual const void * | cast (const Class &clazz) const =0 |
Additional Inherited Members | |
Static Public Member Functions inherited from Object | |
static const helpers::Class & | getStaticClass () |
static const log4cxx::helpers::ClassRegistration & | registerClass () |
A string based interface to configure package components.
|
inlinevirtual |
|
pure virtual |
Activate the options that were previously set with calls to option setters.
This allows to defer activiation of the options until all options have been set. This is required for components which have related options that remain ambigous until all are set.
For example, the FileAppender has the File and Append options both of which are ambigous until the other is also set.
Implemented in PatternLayout, TimeBasedRollingPolicy, DailyRollingFileAppender, FileAppender, ODBCAppender, SocketHubAppender, JSONLayout, Filter, XMLLayout, AppenderSkeleton, FilterBasedTriggeringPolicy, HTMLLayout, SMTPAppender, TelnetAppender, ExpressionFilter, RollingFileAppender, FixedWindowRollingPolicy, WriterAppender, RollingPolicyBase, SizeBasedTriggeringPolicy, SyslogAppender, SocketAppenderSkeleton, RollingFileAppenderSkeleton, SimpleLayout, OnlyOnceErrorHandler, FallbackErrorHandler, ManualTriggeringPolicy, ConsoleAppender, LocationInfoFilter, DateLayout, and NTEventLogAppender.
Set option
to value
.
The handling of each option depends on the OptionHandler instance. Some options may become active immediately whereas other may be activated only when activateOptions is called.
Implemented in PatternLayout, AsyncAppender, DailyRollingFileAppender, FileAppender, WriterAppender, SocketAppenderSkeleton, ODBCAppender, SocketHubAppender, JSONLayout, XMLLayout, Filter, AppenderSkeleton, HTMLLayout, FilterBasedTriggeringPolicy, TelnetAppender, RollingFileAppender, SMTPAppender, FixedWindowRollingPolicy, RollingPolicyBase, LevelRangeFilter, SizeBasedTriggeringPolicy, SyslogAppender, SimpleLayout, OnlyOnceErrorHandler, StringMatchFilter, FallbackErrorHandler, ManualTriggeringPolicy, ConsoleAppender, LoggerMatchFilter, LevelMatchFilter, MapFilter, NTEventLogAppender, and DateLayout.