configureNewLoggers

Sets up logging configuration for ocean.util.log.Logger

Calls the provided file_appender delegate once per log being configured and passes the returned Appender to the Logger.add method.

This is an extra overload because using a delegate literal as a parameter's default argument causes linker error in D1.

  1. void configureNewLoggers(ConfigIterator config, MetaConfig m_config, Appender delegate(istring file, Layout layout) file_appender, bool use_insert_appender)
  2. void configureNewLoggers(ConfigIterator config, MetaConfig m_config, Appender delegate(istring file, Layout layout) file_appender, Layout delegate(cstring) makeLayout, bool use_insert_appender)
    void
    configureNewLoggers

Parameters

config ConfigIterator

an instance of an class iterator for Config

m_config MetaConfig

an instance of the MetaConfig class

file_appender Appender delegate

delegate which returns appender instances to write to a file

makeLayout Layout delegate

A delegate that returns a Layout instance from a name, or throws on error. By default, wraps ocean.util.log.Config.newLayout

use_insert_appender bool

true if the InsertConsole appender should be used (needed when using the AppStatus module)

Meta