Enhanced logging