v0.5.3: improved logging util