add logging plugin