log: add colorized thread-specific logging
all: use log instead of print