Changed handler code so handlers self-register with the 'logging' module.