Class Configuration

Interface that must be implemented to create a Configuration.

Subclassing LifeCycle, mixin-ing SetContext() and GetContext().

Info:

  • Copyright: GrayWolf64
  • License: Apache License 2.0

Methods

configuration:GetAppenders () Gets all the Appenders in the Configuration.
configuration:AddAppender (appender) Adds a Appender to the Configuration.
configuration:GetLoggerConfig (name) Locates the appropriate LoggerConfig name for a Logger name.
configuration:GetUpTime () Gets how long since this Configuration initialized.


Methods

configuration:GetAppenders ()
Gets all the Appenders in the Configuration. Keys are the names of Appenders and values are the Appenders themselves.

Returns:

    table appenders
configuration:AddAppender (appender)
Adds a Appender to the Configuration.

Parameters:

  • appender The Appender to add

Returns:

    bool ifsuccessful
configuration:GetLoggerConfig (name)
Locates the appropriate LoggerConfig name for a Logger name.

Parameters:

  • name The Logger name

Returns:

    object loggerconfig
configuration:GetUpTime ()
Gets how long since this Configuration initialized.

Returns:

    int uptime
generated by LDoc 1.5.0 Last updated 2023-07-17 09:58:50