moved text highlighting into Logger