DaemonApp.OptionalSettings

Struct containing optional constructor arguments. There are enough of these that handling them as default arguments to the ctor is cumbersome.

Members

Variables

config
ConfigParser config;

Configuration parser to use (if null, a new instance is created).

default_configs
istring[] default_configs;

Default configuration files to parse.

help
istring help;

Long description of what the program does and how to use it.

ignore_signals
int[] ignore_signals;

Set of signals to ignore. Delivery of the signals specified in this set will have no effect on the application -- they are not passed to the default signal handler.

loose_config_parsing
bool loose_config_parsing;

If true, configuration files will be parsed in a more relaxed way.

make_layout
Appender.Layout delegate(cstring name) make_layout;

Delegate for LogExt that instantiates a Appender.Layout from a name

reopen_command
istring reopen_command;

Unix domain socket command to trigger reopening of files which are registered with the ReopenableFilesExt. (Typically used for log rotation).

reopen_signal
int reopen_signal;

Signal to trigger reopening of files which are registered with the ReopenableFilesExt. (Typically used for log rotation.)

scheduler_config
IScheduler.Configuration scheduler_config;

Only used if use_task_ext is set to true. Defines default scheduler configuration to be used by TaskExt.

show_version_command
istring show_version_command;

Unix domain socket command to print the --version output of the application to the unix socket.

signals
int[] signals;

Set of signals to handle.

usage
istring usage;

How the program is supposed to be invoked.

use_insert_appender
bool use_insert_appender;

If true, any loggers which are configured to output to the console (see ocean.util.log.Config) will use the InsertConsole appender, rather than the AppendConsole appender. This is required by apps which use ocean.io.console.AppStatus.

use_task_ext
bool use_task_ext;

By default TaskExt is disabled to prevent breaking change for applications already configuring scheduler on their own.

Meta