Update compile.sh

added logger redirection in compile