Added logging delegation to script logger if available