Joutsen Logging v0.5.0+26-g72240ac
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Properties | List of all members
Joutsen.Logging.Configuration.LoggingConfig Class Reference

A configuration element for the logger. More...

Public Member Functions

 LoggingConfig ()
 Creates a new configuration object configured by code.
 
 LoggingConfig (IConfigurationSection section)
 Creates a new configuration object from the json configuration section.
 

Static Public Attributes

const string CONFIG_KEY = "joutsen.logging"
 

Properties

LoggerConfig[] Loggers [get, set]
 The configured loggers.
 

Detailed Description

A configuration element for the logger.

Since
0.5.0

Constructor & Destructor Documentation

◆ LoggingConfig() [1/2]

Joutsen.Logging.Configuration.LoggingConfig.LoggingConfig ( )

Creates a new configuration object configured by code.

◆ LoggingConfig() [2/2]

Joutsen.Logging.Configuration.LoggingConfig.LoggingConfig ( IConfigurationSection  section)

Creates a new configuration object from the json configuration section.

Parameters
sectionthe configuration section containing the values for the handler
Exceptions
ConfigurationErrorsExceptionif no or an invalid type or filter are configured
Remarks
The configuration section needs to provide all mandatory values for the handler.

Member Data Documentation

◆ CONFIG_KEY

const string Joutsen.Logging.Configuration.LoggingConfig.CONFIG_KEY = "joutsen.logging"
static

Property Documentation

◆ Loggers

LoggerConfig [] Joutsen.Logging.Configuration.LoggingConfig.Loggers
getset

The configured loggers.