use logger writeln instead of "echo"