add logger plugin, log errors