[logging] Finally fixes the logging module (c.f. #157) (probably also affects #83)