Fixed log for single line
Add logErrorMax settings