ILoggerinterface that provides a common API for their logging purposes.
Loggerclass that implements the
ILoggerinterface. These loggers offer basic functionality that allow us to jump into using logging features without dedicating too much time to develop our own implementation first.
LoggerProvideris the highest level class that we interact with when utilizing a SDKs logging functions. The
LoggerProviderallows components within the SDKs to share log settings and resources if we desire and in turn helps us save resources as well.
LoggerProviderwe must pass it an instance of a class implementing the
ILoggerinterface, such as the
Loggerclass built into the SDKs as shown in the example below:
LoggerProviderwe may also choose to define the default message level and the default debug level it calls the logger on as shown in the example below:
LoggerProvidersets the message level to
INFOand the debug level to
DEBUGif we do not define them ourselves.
LoggerProviderto top level SDK class that accept it, such as the
ProjectClientas can be seen below: