Added log manager

Signed-off-by: Tom Wright <tom@inflatablecookie.com>
Added hook exception handler

Signed-off-by: Tom Wright <tom@inflatablecookie.com>