pub fn log_this(data: LogData)
Logs the given data to the console with the error type and then to a file