At the moment the Azure::Armrest::Configuration.log= method will bomb if you try to set it to something that's neither a string nor a Logger instance.
For example, if you try to assign it to a Syslogger instance you will get a no implicit conversion of Syslogger into String error because it tries to pass it to Logger.new.
This PR just flips the logic so that only Strings are treated specially, everything else is passed directly.
At the moment the
Azure::Armrest::Configuration.log=
method will bomb if you try to set it to something that's neither a string nor a Logger instance.For example, if you try to assign it to a
Syslogger
instance you will get ano implicit conversion of Syslogger into String
error because it tries to pass it toLogger.new
.This PR just flips the logic so that only Strings are treated specially, everything else is passed directly.