improved logging string format