LogExt

Application extension to parse configuration files for the logging system.

This extension is an extension itself, providing new hooks via ILogExtExtension.

Constructors

this
this(bool use_insert_appender)

Constructor.

this
this(Appender.Layout delegate(cstring name) make_layout, bool use_insert_appender)

Constructor.

Members

Functions

filterConfigFiles
string[] filterConfigFiles(IApplication app, ConfigParser config, string[] files)

Function to filter the list of configuration files to parse. Only present to satisfy the interface

order
int order()

Extension order. This extension uses -1_000 because it should be called early, but after the ConfigExt extension.

preParseConfig
void preParseConfig(IApplication app, ConfigParser config)

Unused IConfigExtExtension methods.

processConfig
void processConfig(IApplication app, ConfigParser config)

Parse the configuration file options to set up the loggers.

Mixins

__anonymous
mixin ExtensibleClassMixin!(ILogExtExtension)

Adds a list of extensions (this.extensions) and methods to handle them. See ExtensibleClassMixin documentation for details.

Variables

use_insert_appender
bool use_insert_appender;

True if the InsertConsole appender should be used instead of the regular one. The InsertConsole appender is needed when using the AppStatus module.

Mixed In Members

From mixin ExtensibleClassMixin!(ILogExtExtension)

extensions
ExtensionClass[] extensions;

List of extensions. Will be kept sorted by extension order when using the registerExtension() method.

registerExtension
void registerExtension(ExtensionClass ext)

Register a new extension, keeping extensions list sorted.

getExtension
Ext getExtension()

Get an extension based on its type.

Inherited Members

From IConfigExtExtension

preParseConfig
void preParseConfig(IApplication app, ConfigParser config)

Function executed before the configuration files are parsed.

filterConfigFiles
string[] filterConfigFiles(IApplication app, ConfigParser config, string[] files)

Function to filter the list of configuration files to parse.

processConfig
void processConfig(IApplication app, ConfigParser config)

Function executed after the configuration files are parsed.

Meta