LogDataLog data can be a string, an error, or and arbitrary object. type LogData = Error | string | unknown;