Skip to content

Logging Element

Michael Hallock edited this page Aug 31, 2016 · 1 revision

The <logging> element provides a method for specifying an alternative logging implementation for the SAML2 library. Custom implementations can be easily written for any logging library, such as SAML2.Logging.Log4Net or SAML2.Logging.CommonLogging. The default logging provider is the NoLogging provider which does not actually log anything.

Below is an example, using the SAML2.Logging.Log4Net logging provider:

<saml2>
    ...
    <logging loggingFactory="SAML2.Logging.Log4Net.Log4NetLoggerFactory, SAML2.Logging.Log4Net" />
</saml2>

See related projects for links to known logging provider implementations.