fixed error in logfile output
alert level now have names (at the moment not used)