CFY-1144 add publish-log function