This PR makes a small improvement to the SetLoggingLevel method to only completely replace the current logger in the (unlikely) situation where the logger is a "custom" implementation of the Logger class, and not an SDKLoggerImpl. The prior behavior of replacing the logger just to set the logging level is not what most users would expect from a "Set" method.
In the next major release, we should add SetLogLevel to the Logger interface to make the behavior of SetLoggingLevel consistent for custom Logger implementations.
This PR makes a small improvement to the
SetLoggingLevel
method to only completely replace the current logger in the (unlikely) situation where the logger is a "custom" implementation of theLogger
class, and not anSDKLoggerImpl
. The prior behavior of replacing the logger just to set the logging level is not what most users would expect from a "Set" method.In the next major release, we should add
SetLogLevel
to theLogger
interface to make the behavior ofSetLoggingLevel
consistent for customLogger
implementations.