implemented loglevel
migration to new logging framework