Setting logger messages according to level (warning, debug, info, etc)