add loglevel library
change Debug to use loglevel library