Use logger instead of print in compilation task