fix adding/detecting new line in console output
add support for custom outputs in console loger, move indentation to the used IO objects