This was copied from Vault code but shouldn't be necessary any more as a change in hclog a while back meant that derived loggers share the log level of the parent.
Right now it's essentially a copy; it needs some updating, integration into dev, and so on.