Generate log statements

    Variable
    Logging function to be called.
    Number of spaces at the start of each generated line.
    Check to generate a separate log call for each variable

    Output