 			}
 			guard let fh = try? FileHandle(forWritingTo: logUrl) else { throw GenericError("failed to create log file") }
 			fh.seekToEndOfFile()
-			logger.append(handler: FileHandleLogHandler(config: config, fileHandle: fh, formatter: plainFormatter))
+			logger.append(handler: FileHandleLogHandler(config: config, fileHandle: fh, formatter: formatter))
 		} catch {
 			os_log("error opening log file: %{public}@", error.localizedDescription)
 		}

		let attrFormatter = TokenizedLogFormatter(config: config, formatString: attrFmtString.attributedString(), dateFormatter: config.dateFormatter)
		logger.append(handler: AttributedStringLogHandler(formatter: attrFormatter, output: logBuffer))

		addFileLogger(logger: logger)

		Log.enableLogging(logger)
	}

	}
	
	/// sets logger to save logs to a file in ~/Library/Logs/
	func addFileLogger(logger: Logger, formatter: LogFormatter) {
		do {
			let logUrl = try FileManager.default.url(for: .libraryDirectory, in: .userDomainMask, appropriateFor: nil, create: true).appendingPathComponent("Logs", isDirectory: true).appendingPathComponent("\(AppInfo.bundleIdentifier).log")
			if !FileManager.default.fileExists(atPath: logUrl.path) {
