logger.go: Fix newline prefix with Lansi and add test