Moved OGLogger to the plugins API.
Added local logger to the hooks
Merge origin/master