CFY-449 added logging api for scripts