Fix log wrapper to allow overloading custom handlers