compile script logging