LogFunction type

Log function for customized logging.

type LogFunction = (level: LogLevel, message: string) => void