Fixlogger

Enhanced logger so it's testable but doesn't leave blank lines in the log when not in use.