LogProvider: fix & unit-tests (thanks to @jplana)