Better handle log framework detection