Class LoggerConfig
The LoggerConfig.
Logger object that is created via configuration.
Subclassing LifeCycle, mixin-ing SetContext()
and GetContext()
.
Info:
- Copyright: GrayWolf64
- License: Apache License 2.0
-
RootLoggerConfig:SetParent ()
-
Overrides
LoggerConfig:SetParent()
.
Returns:
bool false
-
RootLoggerConfig:GetParent ()
-
Overrides
LoggerConfig:GetParent()
.
Returns:
bool false
-
loggerconfig.ValidateAncestors (loggerConfig)
-
Check if a LoggerConfig's ancestors exist and return its desired parent name.
Parameters:
- loggerConfig
LoggerConfig object
-
loggerconfig.Create (name, config, level)
-
Factory method to create a LoggerConfig.
Parameters:
- name
The name for the Logger
- config
The Configuration
- level
The Logging Level
Returns:
object loggerconfig
-
loggerconfig:SetLevel (level)
-
Sets the log Level.
Parameters:
-
loggerconfig:SetParent (T)
-
Sets the parent of this LoggerConfig.
Parameters:
- T
LoggerConfig object or LoggerConfig name
-
loggerconfig:GetParent ()
-
Gets the parent of this LoggerConfig.
Returns:
string lcname
-
loggerconfig:AddAppender (ap)
-
Adds an Appender to the LoggerConfig.
Parameters:
Returns:
bool ifadded
-
loggerconfig:GetAppenders ()
-
Returns all Appenders configured by this LoggerConfig in a form of table (keys are Appenders, values are booleans).
Returns:
table appenders
-
loggerconfig:ClearAppenders ()
-
Removes all Appenders configured by this LoggerConfig.