Add logging library
Change log backend + fix