Generate log statements

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

Output