MODE-2032 Changed the order of searching for log factories and added more information about which logging library is used.