Add real logging module.
catch errors on trivial methods to prevent crashes