Updated script log function use

Replaced ::print with ::log