log to logs inside scripts