Logging as well as outputting to the screen has two different pipes - stdout and stderr - and they must be kept separately. Currently everything goes to a single log file - nothing to `logfileerr`.