Fix NotificationPublisher bug and add log options