|
Joutsen Logging v0.5.0+26-g72240ac
|
A configuration element for the logger. More...
Public Member Functions | |
| LoggerConfig (string type, FilterConfig filter, String name=null) | |
| Creates a new configuration object configured by code. | |
| LoggerConfig (IConfigurationSection section) | |
| Creates a new configuration object from the json configuration section. | |
| Logger | CreateLogger () |
| Creates a logger from the configuraton. | |
Properties | |
| string | Type [get] |
| The configured type of logger as a class name. | |
| string | Name [get] |
| The name of the logger that can be used to access it. | |
| FilterConfig | Filter [get] |
| The configuration for the filter of the logger. | |
| HandlerConfig[] | Handlers [get, set] |
| The configuration for the handlers of the logger. | |
A configuration element for the logger.
| Joutsen.Logging.Configuration.LoggerConfig.LoggerConfig | ( | string | type, |
| FilterConfig | filter, | ||
| String | name = null |
||
| ) |
Creates a new configuration object configured by code.
| type | the configured type of logger as a class name |
| filter | the configuration for the filter of the logger |
| ArgumentNullException | if no filter is provided |
| ArgumentException | if the type is missing or only whitespaces |
| Joutsen.Logging.Configuration.LoggerConfig.LoggerConfig | ( | IConfigurationSection | section | ) |
Creates a new configuration object from the json configuration section.
| section | the configuration section containing the values for the handler |
| ConfigurationErrorsException | if no or an invalid type or filter are configured |
| Logger Joutsen.Logging.Configuration.LoggerConfig.CreateLogger | ( | ) |
Creates a logger from the configuraton.
|
get |
The configuration for the filter of the logger.
|
getset |
The configuration for the handlers of the logger.
|
get |
The name of the logger that can be used to access it.
|
get |
The configured type of logger as a class name.