Fallback when logging isn't initialized
Fallback when logging isn't initialized

In some cases, such as when the global rebar.config file contains typoes
and invalid terms, the rebar3 executable fails when trying to log the
error since it hasn't been set yet, such as in #1792

This patch fixes that by going for a fallback mechanism.

erlang/rebar3,lrascao/rebar3,rebar/rebar3,djnym/rebar3,rebar/rebar3,ferd/rebar3,tsloughter/rebar3,saleyn/rebar3,vladdu/rebar3