Log thread name.