Add logging mechanism
Update plugins to use new logging system