Import exception logging when dealing with plugins
Format before raising