logging via logfile

- changed logfile functions, no macros
- logging now in html style