• Creates a file based logger to append to the given path. The file is opened on start and closed when the process shuts down. Errors are logged to the console.

    Parameters

    • path: string

    Returns Promise<((_level: LogLevel, formattedLog: string) => void)>