changing LoggerFactory to Log and adding DEBUG,ERROR logging Levels