configureLogger

Sets up logging configuration. Calls the provided file_appender delegate once per log being configured and passes the returned appender to the log's add() method.

Parameters

log Logger

Logger to configure

settings Config

an instance of an class iterator for Config

name istring

name of this logger

file_appender Appender delegate

delegate which returns appender instances to write to a file

console_appender Appender delegate

Delegate which returns an Appender suitable to use as console appender. Might not be called if console writing is disabled.

console_enabled bool

true if a console appender should be added (by calling console_enabled).

syslog_enabled bool

true if a syslog appender should be added.

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.

Meta