Convert Logwrites into a plugin